note 34086 added to function.ctype-alnum

From: Date: Tue, 15 Jul 2003 23:12:51 +0000
Subject: note 34086 added to function.ctype-alnum
Groups: php.notes 
Request: Send a blank email to php-notes+get-52160@lists.php.net to get a copy of this message
"The function is equivalent to (ctype_alpha($text) || ctype_digit($text))." i think the ment this to apply to every character individually. function ctype_alnum($text) { for ($i = 0; $i<strlen($text); $i++) { if (!ctype_alpha($text[$i]) || !ctype_digit($text[$i])) return false; } return true; } ---- Manual Page -- http://www.php.net/manual/en/function.ctype-alnum.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34086 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34086&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34086&report=yes

« previous php.notes (#52160) next »