PHP截取两位小数点,不四舍五入 PHP截取两位小数点,不四舍五入 number_format() 函数通过千位分组来格式化数字。 <?php $m = number_format($1.222, 2); echo $m; ?>