check out php.net/number-format


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 24, 2001 4:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] string question


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]

Reply via email to