> Jumping in a little late here, but what about is_numeric()? > Haven't tried it, but the php manual for is_int says: > Note: To test if a variable is a number or a numeric string (such as > form input, which is always a string), you must use is_numeric(). >
The problem with is_numeric() is that something like "4e4" comes up as true, because it could be construed as a HEX value. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php