money_format php
<p>why </p>

<pre><code>setlocale(LC_MONETARY,'en_US');
echo money_format('%=*^-20#10.2i',1234.56);
</code></pre>

<p>outputs <code>USD ******1234.56</code></p>

<p>if it should be left justified and be 20 symbols in length.</p>
