Re: Re: is_int/is_numeric possible bug

From: Date: Tue, 29 Nov 2005 17:50:52 +0000
Subject: Re: Re: is_int/is_numeric possible bug
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-20852@lists.php.net to get a copy of this message
Ben Litton wrote:
is_numeric will test if it's a numeric string. Maybe is_int should do the same, but apparently it doesn't. You could always do an is_numeric and if it returns true, cast it as an int.
Or use: www.php.net/ctype_digit Ciao ciao -- Matteo Beccati http://phpadsnew.com http://phppgads.com

« previous php.internals (#20852) next »