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;
}
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
猜你喜欢
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
相关资源
相似解决方案