note 27275 added to function.intval

From: Date: Fri, 29 Nov 2002 23:52:58 +0000
Subject: note 27275 added to function.intval
Groups: php.notes 
Request: Send a blank email to php-notes+get-40134@lists.php.net to get a copy of this message
When checking a string or other datatype for a numeric value (i.e, form data that should be a numeric value, but is input as a string), use is_numeric(), not is_int(). -- http://www.php.net/manual/en/function.intval.php http://master.php.net/manage/user-notes.php?action=edit+27275 http://master.php.net/manage/user-notes.php?action=delete+27275 http://master.php.net/manage/user-notes.php?action=reject+27275

« previous php.notes (#40134) next »