$a=2642.2-2642.00; var_dump(number_format($a,2));//0.20 var_dump(number_format($a,3));//0.200
上一篇:PHP foreach遍历后修改值再重新放回去
下一篇:laravel Access denied for user 'root'@'localhost' (using pas