note 9689 added to is_numeric

From: Date: Sun, 19 Nov 2000 09:13:34 +0000
Subject: note 9689 added to is_numeric
Groups: php.notes 
Request: Send a blank email to php-notes+get-7886@lists.php.net to get a copy of this message
If you are testing a string with is_numeric(), the string must not contain *any* non-numeric data. If it does, is_numeric() will return false. For example: is_numeric ("1.21E-100"); // Returns true is_numeric ("19 Nov 00"); // Returns false http://www.php.net/manual/function.is-numeric.php

« previous php.notes (#7886) next »