note 9689 deleted from function.is-numeric by nlopess
| From: | nlopess@php.net | Date: | Sat, 24 Sep 2005 07:52:03 +0000 |
| Subject: | note 9689 deleted from function.is-numeric by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-95688@lists.php.net to get a copy of this message | ||
Note Submitter: zak at php dot net
----
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