I get the following error when I try to use number format in php:
Notice: A non well formed numeric value encountered
$number = 10345.34543;
$format = "0, ',', '.'";
echo number_format($number, $format);
I am almost positive it is because I'm holding the formating part in a string, but is there any way around this?
Thanks.