PHP: number_format

If format “0,10” using number_format it will end up in “0,00”. Just before number_format is executed the string “0,10” is converted by php to a number. PHP always uses the engish notation it won’t look after the comma. Converting the “,” to a “.” allows php to see the other digits.


Leave a Reply