From: "William Lovaton" <[EMAIL PROTECTED]>

> Instead of doing a lot of casting, you can use is_numeric() to see if a
> variable is a number or a numeric string.

Yeah, but the OP wanted to be able to tell an integer from a real number
from a string. is_numeric() is going to validate 5, 5.5, and 5.05E6, for
example.

---John Holmes...

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

Reply via email to