Re: [PHP-DEV] Re: is_int/is_numeric possible bug

2005-11-29 Thread Ben Litton
On Tue, 29 Nov 2005 12:53:47 -0500, "Sara Golemon" <[EMAIL PROTECTED]> wrote: is_numeric will test if it's a numeric string. Maybe is_int should do the same, but apparently it doesn't. What on earth for? If you want content, do is_numeric(). If you want type, do is_int() Simple. -Sa

Re: [PHP-DEV] Re: is_int/is_numeric possible bug

2005-11-29 Thread Ben Litton
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. On Tue, 29 Nov 2005 12:42:10 -0500, Gareth Ardron <[EMAIL PROTECTED]> wrote: Matteo Beccati wrote: Ga