Re: How to format CLI tabular data?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 12:30 PM -0700 10/9/07, Jim Lucas wrote:
tedd wrote:
At 12:05 AM -0700 10/9/07, Jim Lucas wrote:
Daevid Vincent wrote:
Does PHP have any tools like this? I'd prefer not to pull in some PEAR
package or other bloat, but I'll take what I can get if it actually works
well. I was hoping there are some tips/tricks to show simple tabular data:
-snip-
notice basic things like alignment, length of data (as in 'tabs' won't work), etc.


Try this out

-snip- code

Jim:

Thanks for the code. I've altered it to display a table in a browser:

http://webbytedd.com/bbb/table/

Code is shown there.

Cheers,

tedd

Wasn't he asking for something that was to display in the console?


Yeah, but what's the point of reading what the OP wants if you've already predetermined what the answer is? :-)

Besides, I think I demonstrated that I didn't know the answer anyway.

But, I though it an interesting exercise to create a table without using table tags.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux