Re: Formatting plain text file
| From: | Robert Cummings | Date: | Thu, 30 Jul 2009 23:05:30 +0000 |
| Subject: | Re: Formatting plain text file | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296081@lists.php.net to get a copy of this message | ||
Skip Evans wrote:
Jim Lucas wrote:You can use a combination of wordwrap(), str_pad(), and swathe of judicious (but simplistic) math :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHPSkip Evans wrote:Sure, that will do it. But isn't there some way to construct formatted tables similar to HTML?Hey all, Am I brain fading or what? I'm so used to formatting text in tables for HTML display I can't think of how to do it for a plain text file. I just need to create a columned table of names and addresses type stuff... sprintf?or a little str_pad on each variable...