Use number_format() to put a comma between the thousands
$foo = 123456789;
print number_format($foo); //will print 123,456,789

Ron Allen wrote:

> I am looking at how to format output
> Here is what I have.  There is a simple currency conversion that I do and
> the output is just a string of numbers
> I would like it so that it puts a comma for every 3 spaces.......Any
> clues......oh knowing newsgroup!!!!

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to