Re: printf

From: Date: Wed, 10 Apr 2002 11:54:20 +0000
Subject: Re: printf
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92374@lists.php.net to get a copy of this message
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!!!!

« previous php.general (#92374) next »