note 76261 added to function.ctype-digit

From: Date: Sun, 08 Jul 2007 09:06:12 +0000
Subject: note 76261 added to function.ctype-digit
Groups: php.notes 
Request: Send a blank email to php-notes+get-128297@lists.php.net to get a copy of this message
robert at mediamonks dot com writes... 04-Jun-2007 11:46 I always used this function to check user input but it failed me when I wanted to check int's used in my script. This is caused by the fact that the function only functions right when the argument is a string. Here is a solution for this 'problem' : Could we have some accuracy in these comments please? If the spec at the top of this page is taken to be correct then Robert is incorrect as it clearly states that the argument should be a string. Skimming notes in this section suggests to the reader that there is a problem with this function when actually people just arent reading the documentation - proliferation of careless mistakes. ---- Server IP: 195.221.21.36 Probable Submitter: 88.122.175.60 ---- Manual Page -- http://www.php.net/manual/en/function.ctype-digit.php Edit -- https://master.php.net/note/edit/76261 Del: integrated -- https://master.php.net/note/delete/76261/integrated Del: useless -- https://master.php.net/note/delete/76261/useless Del: bad code -- https://master.php.net/note/delete/76261/bad+code Del: spam -- https://master.php.net/note/delete/76261/spam Del: non-english -- https://master.php.net/note/delete/76261/non-english Del: in docs -- https://master.php.net/note/delete/76261/in+docs Del: other reasons-- https://master.php.net/note/delete/76261 Reject -- https://master.php.net/note/reject/76261 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128297) next »