note 14492 added to function.is-numeric.php
| From: | ymoi at netcourrier dot com | Date: | Thu, 02 Aug 2001 08:29:06 +0000 |
| Subject: | note 14492 added to function.is-numeric.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16204@lists.php.net to get a copy of this message | ||
To test if a variable is numeric or not :
$temp = (float) $var;
$temp = (string) $temp;
if ($temp<> $var) { //var is not numeric}
http://www.php.net/manual/en/function.is-numeric.php