Console_Table classThis class provides an API to easily generate tables for Console applications (like the tables generated by the MySQL client application in SELECT queries). Eg: +----------+----------+------------+----------+ | Header 1 | Header 2 | Header 3 | Header 4 | +----------+----------+------------+----------+ | 1 | 2 | 10/08/2002 | 1 | | one | two | 11/08/2002 | 2 | | foo | bar | 12/08/2002 | 3 | +----------+----------+------------+----------+ The code used to generate the above table is:
This class is available here. Link to meIf you use any of the code on this site (and if you don't I guess) or it makes your life easier, I'd appreciate a link - http://www.phpguru.org. Thanks. |
