How can I make the thousands_sep a period. I got this now: $total=number_format($total,"2",",","thousands_sep");
output is 8,450,00 but must be 8.450,00
You just need to tell number_format() what separators to use.
number_format(float number, int decimals, string decimal, string thousands);
i.e.
$total = number_format( $total, 2, ',', '.' );