note 61972 added to function.is-int

From: Date: Thu, 16 Feb 2006 11:38:29 +0000
Subject: note 61972 added to function.is-int
Groups: php.notes 
Request: Send a blank email to php-notes+get-103838@lists.php.net to get a copy of this message
Be aware that is_numeric (mentioned in this article as the proper way to validate string numbers) also allows numbers in scientific and hexadecimal annotation. Thus DO NOT USE that function to validate user input that will be used as id number for in a query for example, this could cause mysql errors. Use ctype_digit instead. ---- Server IP: 83.137.20.120 Probable Submitter: 137.120.222.64 ---- Manual Page -- http://www.php.net/manual/en/function.is-int.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61972 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61972&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61972&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61972&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61972&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61972&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61972&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61972&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61972&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103838) next »