note 18205 added to function.intval
| From: | some at gamepoint dot net | Date: | Mon, 14 Jan 2002 18:34:40 +0000 |
| Subject: | note 18205 added to function.intval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24803@lists.php.net to get a copy of this message | ||
Note that it is stupid though as is_int does exactly what it's supposed to do. It detects a
string and not a number.
In case of is_int() it's pointless to increment with 0 as that will always return a true value
even if the string value didn't hold any numbers.
There are some other situations where you might want to do this but not often.
--
http://www.php.net/manual/en/function.intval.php
http://master.php.net/manage/user-notes.php?action=edit+18205
http://master.php.net/manage/user-notes.php?action=delete+18205
http://master.php.net/manage/user-notes.php?action=reject+18205