note 16202 added to function.intval
| From: | phil at NOSPAMvortus dot com | Date: | Fri, 19 Oct 2001 22:29:58 +0000 |
| Subject: | note 16202 added to function.intval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19186@lists.php.net to get a copy of this message | ||
In response to the Editor's note for the post by nefer@ncport.ru (15-Dec-2000 05:20):
You can't use is_int if you're reading in values from a form field. The function always
returns false, even if it is obviously an integer in the field. The method described in this post
is the remedy for this.
--
http://www.php.net/manual/en/function.intval.php
http://master.php.net/manage/user-notes.php?action=edit+16202
http://master.php.net/manage/user-notes.php?action=delete+16202
http://master.php.net/manage/user-notes.php?action=reject+16202