RE: [PHP] number_format question From: John W. Holmes (holmes072000 <email protected>)
Date: 10/31/02

> Tried it. It works but crops everything after the first "," in the
number
> if you enter a number with commas. Works great if you don't enter any
> commas.

How many integers can you name that have commas in them??? In other
words, you have a string, so PHP converts it to an integer to pass to
number format. Thus you only get the integer part up to the first comma.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php