note 14793 deleted from function.is-integer by zak
| From: | zak@php.net | Date: | Tue, 11 Sep 2001 16:37:59 +0000 |
| Subject: | note 14793 deleted from function.is-integer by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17908@lists.php.net to get a copy of this message | ||
is_long() returns the *type* of the variable, not whether that variable contains an integer value.
To determine if a string holds an integer value do:
is_numeric($x) && ((integer)$var == $var)