Page 1 of 1

Outputting Text Files?

Posted: Mon Jul 19, 2010 3:58 pm
by Number1SuperGuy
I've got some arrays and database information which I need to output as a text file with columns, padded by spaces. I've never outputted text files and I don't know how to count digits and add spaces, could I get some advice for getting started on this project? Let me know if I need to be more clear.

Thanks guys!

Re: Outputting Text Files?

Posted: Mon Jul 19, 2010 8:39 pm
by liljester
http://us2.php.net/manual/en/ref.strings.php

check out the strlen() and str_pad() functions