create a text table with php using fixed width font
- by Hintswen
I want to write a PHP script to output some data as a plain-text table using spaces to get the data into columns (just like the Linux top command). I can't use a HTML table as the script output will be saved to disk and viewed in a plain-text editor.
Is there anything available that can do this automatically (format the data into columns)?