Re: How to format CLI tabular data?
| From: | Richard Heyes | Date: | Tue, 09 Oct 2007 14:04:37 +0000 |
| Subject: | Re: How to format CLI tabular data? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262966@lists.php.net to get a copy of this message | ||
Daevid Vincent wrote:
I write many CLI scripts in PHP to clean up DB records, etc via crontab scripts. Often though, I implement command line switches to 'debug' or see various data as a precaution before actually purging. Perl has some neat tools built in to format tabular data: http://www.usenix.org/publications/perl/perl08.html Does PHP have any tools like this?The PEAR class Console_Table will do this for you.
I'd prefer not to pull in some PEAR package or other bloatPEAR does not automatically mean bloat. It does however automatically mean less work for you. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support