Use number_format() :
http://www.php.net/manual/en/function.number-format.php
echo number_format($number);
Other options exist with this function, it's pretty useful.
Regards
Philip Olson
http://www.cornado.com/
On Fri, 23 Feb 2001 [EMAIL PROTECTED] wrote:
> I have a string that contains a number such as: $string = '12345'
>
> I want that to read 12,345 though. Is there any way in which I can insert a
> comma in there in the correct places?
>
> -Matt
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]