PHP forcing a specific set of numbers
<p>Im writing a script at the moment which requires the layout to be formatted into <code>3 numbers ( 000 )</code> .... When i return my SQL, the results i get could be '1', could be '100', could be '50' it could be anywhere between 0 and 999 .... How can i always get it to return as a 3 number layout.</p>

<p>For instance, if  the result returns 1 it need to read 001, if it returns 50 it needs to read 050 and so on.</p>
