I would like to know how can I add comma\'s to numbers. To make my question simple.
I would like to change this:
1210 views
To:
The Following code is working for me, may be this is helpful to you.
$number = 1234.56; echo number_format($number, 2, '.', ',');
//1,234.56