note 15127 added to function.is-integer
| From: | mfurister at newwater dot net | Date: | Wed, 29 Aug 2001 05:01:31 +0000 |
| Subject: | note 15127 added to function.is-integer | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17288@lists.php.net to get a copy of this message | ||
You can easily check to see if a string is an Integer with the following code:
if (is_integer((integer)$VAR))
{
}
http://www.php.net/manual/en/function.is-integer.php