note 102238 added to function.is-numeric
| From: | annoyed-user at example dot com | Date: | Thu, 03 Feb 2011 15:01:00 +0000 |
| Subject: | note 102238 added to function.is-numeric | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-176646@lists.php.net to get a copy of this message | ||
The result from is_numeric() is not very usable where i work.
Fx. is_numeric(' 2345') returns true, but in our world this is not a legal number, because
of the space.
And for some reason is_numeric('2345 ') and is_numeric(' 2345 ') returns false.
Here i would expect true, when ' 2345' also are true.
----
Server IP: 195.184.96.15
Probable Submitter: 89.233.12.34
----
Manual Page -- http://www.php.net/manual/en/function.is-numeric.php
Edit -- https://master.php.net/note/edit/102238
Del: integrated -- https://master.php.net/note/delete/102238/integrated
Del: useless -- https://master.php.net/note/delete/102238/useless
Del: bad code -- https://master.php.net/note/delete/102238/bad+code
Del: spam -- https://master.php.net/note/delete/102238/spam
Del: non-english -- https://master.php.net/note/delete/102238/non-english
Del: in docs -- https://master.php.net/note/delete/102238/in+docs
Del: other reasons-- https://master.php.net/note/delete/102238
Reject -- https://master.php.net/note/reject/102238
Search -- https://master.php.net/manage/user-notes.php