number_format()
Collapse
X
-
Oh lovely options. I must put this into my codeing habits. Thank for the information. :)the point there is: with the commas, you dont need to do the string concatenation thus saving time an output (the Zero bytes). see PHP PerformanceComment
-
The number_format() function formats a number with grouped thousands.
Example
<?php
echo number_format(" 1000000");
echo "<br />";
echo number_format(" 1000000",2);
echo "<br />";
echo number_format(" 1000000",2,",", ".");
?>
you can find more easy solution here
<url removed: no advertising please>
thanksComment
Comment