📜  php 数字格式 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:44.480000             🧑  作者: Mango

代码示例3
$num = 12345.6789;
echo number_format($num, 2, '.', '') //12345.67
echo number_format($num, 3, ',', '.') //12.345,678