转载自:https://www.cnblogs.com/lhm166/articles/5789489.html
echo number_format("1000000"); echo number_format("1000000",2); echo number_format("1000000",2,",","."); echo number_format("1000000",2,"*","."); echo number_format("1000000",2,".","");
echo number_format("1000000");
echo number_format("1000000",2);
echo number_format("1000000",2,",",".");
echo number_format("1000000",2,"*",".");
echo number_format("1000000",2,".","");
输出:1,000,000 1,000,000.00 1.000.000,001.000.000*001000000.00
输出:
1,000,000
1,000,000.00
1.000.000,00
1.000.000*00
1000000.00
正在学习Go语言的PHP程序员。