Comma separated numeric values – PHP CodeIgniter

This is what you are looking for number_format

echo number_format($value['report_total_cost_usd'], 2, '.', ','); // ex: 1,234,456.00

Output

1,234,456.00

need some dedication towards the work, and some knowledge how to read manuals..

Leave a Comment