php 金额每三位添加一个逗号
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;
}
}

浙公网安备 33010602011771号