note 79794 deleted from function.ctype-digit by felipe

From: Date: Sat, 15 Dec 2007 15:24:54 +0000
Subject: note 79794 deleted from function.ctype-digit by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133564@lists.php.net to get a copy of this message
Note Submitter: michael [at] pythontech.net.au Reason: 1 ---- ctype_digit() checks if the string contains only digits. It works exactly how it is documented there is no bugs. It's a bit of a worry that you guys have a need to check integers for digits, seeing how that is all they can possibly consist of. You should know what type your variables are, if you don't then the bug isn't in PHP it's in your code. - Michael

« previous php.notes (#133564) next »