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
spacebiscuit
Forum Contributor
Posts: 390 Joined: Mon Mar 07, 2005 3:20 pm
Post
by spacebiscuit » Wed May 23, 2007 1:30 pm
Hi,
Is there a function available which inserts a comar between the thousands and hunderds of a figure.
For example 1500 becomes 1,500.
Thanks in advance,
Rob.
aaronhall
DevNet Resident
Posts: 1040 Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:
Post
by aaronhall » Wed May 23, 2007 1:33 pm
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Wed May 23, 2007 1:33 pm
It's spelt 'comma', and the function that adds it is number_format().
spacebiscuit
Forum Contributor
Posts: 390 Joined: Mon Mar 07, 2005 3:20 pm
Post
by spacebiscuit » Wed May 23, 2007 6:20 pm
Perfect thanks.
Much appresheated
Rob.