note 23660 added to function.ctype-alnum

From: Date: Wed, 24 Jul 2002 12:11:25 +0000
Subject: note 23660 added to function.ctype-alnum
Groups: php.notes 
Request: Send a blank email to php-notes+get-33497@lists.php.net to get a copy of this message
Actually, ctype_alnum ($text) is not equivalent to (ctype_alpha($text) || ctype_digit($text)). For $text="ab12", ctype_alnum returns true, while the second construction returns false (it returns true only when *all* the characters are either letters or digits). -- http://www.php.net/manual/en/function.ctype-alnum.php http://master.php.net/manage/user-notes.php?action=edit+23660 http://master.php.net/manage/user-notes.php?action=delete+23660 http://master.php.net/manage/user-notes.php?action=reject+23660

« previous php.notes (#33497) next »