note 15454 deleted from function.is-integer by zak
| From: | zak@php.net | Date: | Tue, 11 Sep 2001 16:37:45 +0000 |
| Subject: | note 15454 deleted from function.is-integer by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17907@lists.php.net to get a copy of this message | ||
the last post by mfurister@newwater.net is of course wrong:
(integer)'aaa' === 0 is true
(integer)'' === 0 is true
(integer)'1.2' === 1 is true
etc ...
and of course 0 is_integer!!
see http://www.php.net/manual/en/language.types.string.php#language.types.string.conversion
Ivan