php number_format() where formating string is a variable
<p>I get the following error when I try to use number format in php:</p>

<p>Notice: A non well formed numeric value encountered</p>

<pre><code>$number = 10345.34543;
$format = "0, ',', '.'";
echo number_format($number, $format);
</code></pre>

<p>I am almost positive it is because I'm holding the formating part in a string, but is there any way around this?</p>

<p>Thanks.</p>
