note 76261 deleted from function.ctype-digit by philip

From: Date: Sun, 22 Feb 2009 21:14:04 +0000
Subject: note 76261 deleted from function.ctype-digit by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150967@lists.php.net to get a copy of this message
Note Submitter: withheld at withheld dot com ---- 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.

« previous php.notes (#150967) next »