Page 1 of 1

Adding a comar

Posted: Wed May 23, 2007 1:30 pm
by spacebiscuit
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.

Posted: Wed May 23, 2007 1:33 pm
by aaronhall

Posted: Wed May 23, 2007 1:33 pm
by onion2k
It's spelt 'comma', and the function that adds it is number_format().

Posted: Wed May 23, 2007 6:20 pm
by spacebiscuit
Perfect thanks.

Much appresheated :wink:

Rob.