note 102238 added to function.is-numeric

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.