note 22218 deleted from function.is-nan by yohgaki

From: Date: Tue, 17 Sep 2002 12:34:44 +0000
Subject: note 22218 deleted from function.is-nan by yohgaki
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-36833@lists.php.net to get a copy of this message
See is_numeric if you have an older version of PHP than 4.20. It should serve your purpose well (negate the output). If you're using PHP 3, you can use a regular expression: function isNaN( $var ) { return !ereg ("^[0-9\.]+$", $var); }

« previous php.notes (#36833) next »