note 102238 deleted from function.is-numeric by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: annoyed-user at example dot com 

----

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.
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.