Re: Re: is_int/is_numeric possible bug
| From: | Ben Litton | Date: | Tue, 29 Nov 2005 17:57:01 +0000 |
| Subject: | Re: Re: is_int/is_numeric possible bug | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20856@lists.php.net to get a copy of this message | ||
On Tue, 29 Nov 2005 12:53:47 -0500, "Sara Golemon" <pollita@php.net> wrote:
PHP lets you get away without worrying about types often enough that people slip up on this. I don't know if most PHP users care if the value of a variable is a "4" or a 4 but yes, it's easy enough to get around. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/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. -Sara