Zend - The PHP Company




Code Gallery: GabeBauman


A Nested Tag Generator  

Type: class library
Added by: GabeBauman
Entered: 29/03/2000
Last modified: 08/12/1999
Rating: **** (7 votes)
Views: 8420
Sick of forgetting to close tags when generating tables and HTML documents in a PHP script? This library contains 2 classes:
  • CTagDocument
  • CHTMLDocument (an extension of CTagDocument).
These classes track HTML tags as you open and close them; CHTMLDocument is geared towards generation of a complete HTML document, while CTagDocument can be used for structures like TABLE and LIST. Basic HTML formatting is also done for you. These classes do not buffer their output to memory - they echo() their output to the browser as they go. Call 'CloseAllTags()' to properly close all open tags, or 'CloseTag()' to close the current tag. See the example below...


Bit Manipulation Class  

Type: class
Added by: GabeBauman
Entered: 29/03/2000
Last modified: 08/12/1999
Rating: **** (5 votes)
Views: 6082
Maniac's bit manipulation routines, wrapped into a simple class object.

Newbies, think of this class as a kind of array of up to 32 true or false values, squished into a tiny amount of space.





Search