Putting commas in numbers

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
LancelowDowell
Forum Newbie
Posts: 4
Joined: Wed Jul 09, 2003 8:02 am
Contact:

Putting commas in numbers

Post by LancelowDowell »

Is there any easy way to add commas into numbers? Such as 1,000,000 instead of 1000000? Thanks
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post by delorian »

Check the number_format() function in the manual, but I think that will convert number to string so use it only for printing on screen :D
Post Reply