$item=(string)$item;
list($a,$b)=explode(‘.’,$item);
$item=$a.’.’.substr($b,0,1);
$item=(string)$item;
list($a,$b)=explode(‘.’,$item);
$item=$a.’.’.substr($b,0,1);
文章来源:智云一二三科技
文章标题:php保留小数点后一位不四舍五入
文章地址:https://www.zhihuclub.com/153767.shtml