Page 1 of 1

Number formatting

Posted: Sun May 28, 2006 9:47 am
by tommy1987
What is the best way to present a number putting the commas into it e.g.

Currently: 12044536645
I want: 12,044,536,645

Thanks

Posted: Sun May 28, 2006 9:50 am
by feyd

Re: Number formatting

Posted: Sun May 28, 2006 9:50 am
by Chris Corbyn
tommy1987 wrote:What is the best way to present a number putting the commas into it e.g.

Currently: 12044536645
I want: 12,044,536,645

Thanks
You practically answered your own question in the thread title.

php.net is your friend :)

http://www.php.net/number_format