note 96253 deleted from function.is-nan by danbrown
| From: | danbrown@php.net | Date: | Wed, 17 Feb 2010 14:49:57 +0000 |
| Subject: | note 96253 deleted from function.is-nan by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166060@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 return TRUE when $var is not a number...