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

PHP - number_format() function

0 votes
added Jul 31, 2018 in PHP by LC Marshal Captain (26,090 points)
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. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.