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,00
1.000.000*00
1000000.00
正在学习Go语言的PHP程序员。