PHPBuilder.com has a new article this morning for those out there that are fans of the PEAR classes provided with PHP. This new piece talks about using PEAR's HTML_Table class.
In the first part of the article, they show you one "uneloquent" solution of simply adding HTML to a variable in PHP and echoing it out. They then show you how to use this class to create the same layout, using the functionality and methods provided to create an easy-to-expand layout. They move from a simple layout to something a bit more complex, including having alternating colors on rows of data.
Classes like this can be useful, but, ultimately, you'll want to do more separation than this of your data and layout, but it's a good start.




