$money1 = 68.75; $money2 = 54.35; $money = $money1 + $money2; / / echo $money will output "123.1"; $formatted = sprintf("%01.2f", $money); / / echo $formatted will output "123.10 "
?php $money1 = 68.75; $money2 = 54.35; $money = $money1 + $money2; / / echo $money va afficher "123.1"; $formatted = sprintf("%01.2f", $money); / / echo $formatted va afficher "123.10 "?