note 96254 deleted from function.is-nan by danbrown
| From: | danbrown@php.net | Date: | Wed, 17 Feb 2010 14:49:51 +0000 |
| Subject: | note 96254 deleted from function.is-nan by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166059@lists.php.net to get a copy of this message | ||
Note Submitter: Gilles
----
nez, please add a "!" in your function:
function isNaN( $var ) {
return !ereg("^[-]?[0-9]+([\.][0-9]+)?$", $var);
}
so that the fonction returns TRUE when $var is not a number...