[snip]
It is not mentioned in the manual, but it seems dec_point cannot be 
empty. If it is empty, default (.) is taken.
....
echo number_format($number, 4, '', ',')."\n";

number_format() does allow an empty set of single quotes in the third
attribute which it will default to a period (.) for the decimal point.
number_format() does require that have all the attributes stated, or it
will throw an error.
So if you do this....

echo number_format($number, 4, ',')."\n";

You should get an error.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to