Oct 13, 2018 No Comments 常用php 获取小数位数function getFloatLength($num) { $count = 0; if (!is_string($num)) { throw new \Exception('not string'); } $num = (string) $num; $temp = explode('.', $num); ... 继续阅读 »