note 101766 added to function.is-numeric
| From: | MartynRanyard at osu1 dot php dot net | Date: | Mon, 10 Jan 2011 12:14:12 +0000 |
| Subject: | note 101766 added to function.is-numeric | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175595@lists.php.net to get a copy of this message | ||
The documentation does not clarify what happens if you the input is an empty string - it correctly
returns false in my experience. Useful to state these odd cases, for when you see code that checks
for an empty string and is_numeric, you can tell it's a waste of a comparison.
----
Server IP: 69.147.83.197
Probable Submitter: 84.45.227.127
----
Manual Page -- http://www.php.net/manual/en/function.is-numeric.php
Edit -- https://master.php.net/note/edit/101766
Del: integrated -- https://master.php.net/note/delete/101766/integrated
Del: useless -- https://master.php.net/note/delete/101766/useless
Del: bad code -- https://master.php.net/note/delete/101766/bad+code
Del: spam -- https://master.php.net/note/delete/101766/spam
Del: non-english -- https://master.php.net/note/delete/101766/non-english
Del: in docs -- https://master.php.net/note/delete/101766/in+docs
Del: other reasons-- https://master.php.net/note/delete/101766
Reject -- https://master.php.net/note/reject/101766
Search -- https://master.php.net/manage/user-notes.php