note 50103 added to function.is-numeric
| From: | codeslinger at compsalot dot com | Date: | Fri, 18 Feb 2005 05:00:30 +0000 |
| Subject: | note 50103 added to function.is-numeric | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85190@lists.php.net to get a copy of this message | ||
in version 4.3.10 I find the following
".73" TRUE
"0.73" TRUE
"+0.73" TRUE
"+.73" FALSE
I would not call it a bug, just something to be aware of.
-----
Also be aware that if you give php a huge number and then you convert it to a string you get
"INF"
if you pass that to mySQL etc. you could have a problem...
----
Manual Page -- http://www.php.net/manual/en/function.is-numeric.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50103
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50103&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50103&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50103&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50103&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50103&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50103&report=yes
Search -- http://master.php.net/manage/user-notes.php