Is there a way to add commas to numbers? Examples:
111222333 to 111,222,333 12345 to 12,345 123 unchanged
[code=php]$with_commas = preg_replace('/(?<=d)(?=(ddd)+$)/', ',', $number);[/code]
[code=php] $with_commas = number_format($number); [/code]
Bokeh, why not make use of the inbuilt number_format function?[/QUOTE]
Help @shane_carr spread the word by sharing this article on Twitter...