Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

PHP - number_format() function

0 votes
10 views
added Jul 31 in PHP by LC Marshal Lieutenant (13,850 points)
<?php
echo number_format("1000000")."<br>";
// output 1,000,000

echo number_format("1000000",2)."<br>";
// 1,000,000.00

echo number_format("1000000",2,",",".");
// 1.000.000,00

?>



 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...