number_format($n, $p, $t, $d) rounds $n to $p decimal places, using $t as the thousands separator and $d as the decimal separator.
<? echo "Total charge is ", number_format($total, 2, ".", ","), " Euros"; ?>