function feeHandle($fee){ if (is_numeric($fee)) { list($int, $decimal) = explode('.', $fee); $int = preg_replace('/(?<=[0-9])(?=(?:[0-9]{3})+(?![0-9]))/', ',',$int); if ($decimal)$int .= '.'. $decimal; return $int; }}
转载于:https://www.cnblogs.com/aifengguo/p/10044323.html