php保留小数点后两位且不四舍五入的方法:使用函数substr,代码为【echo sprintf("%.2f",substr(sprintf("%.3f", $num), 0, -2))】。
技术文章 / 下载软件趣味内容 / 专业带飞