$total = 100;$fee = 0.8;function money($total, $fee){ return number_format($total - $total * $fee/100, 2, '.', ',');}echo money($total, $fee);
99.20 这样行不?