Source Code:
(back to article)
<?php $number = 1234567.89; $formatted_number = number_format($number, 2, '.', ','); echo $formatted_number; // Output: 1,234,567.89
Result:
Report an issue