PHP: format a number using number_format

// Outputs 1.234,57
$number = number_format('1234.567', 2, ',', '.');

Leave a Reply