How to write fixed width text file with PHP
<p>I'm trying to do something that should be easy, but having problems.</p>

<p>All I want to do is generate a report from a MySQL table, and have it as a plain .txt file. I need the file fixed width, so everything lines up and looks good. I'm going to use the courier font, and it's just going to be a barebones table, but how do I actually get everything to line up, the way a fixed-width file should?</p>

<p>Do I have to build up an array of values padded with spaces to get them the same width? or is there a php function to begin writing at a specific position?</p>

<p>Thanks again for the help!</p>
