php 中的数字之间需要逗号
I need comma in between figures in php
我不知道如何在 php..
中显示带有逗号和小数点的数字
我希望 12345.90 显示为 12,345.90
提前致谢
您应该查看 number_format 函数。它会解决你的问题。
试试这个:
echo number_format(12345.90, 2, '.', ','); // Prints 12,345.90
我不知道如何在 php..
中显示带有逗号和小数点的数字我希望 12345.90 显示为 12,345.90
提前致谢
您应该查看 number_format 函数。它会解决你的问题。
试试这个:
echo number_format(12345.90, 2, '.', ','); // Prints 12,345.90