note 22170 added to function.ctype-alpha
| From: | iqDOTgobo at gmxDOTnet dot php dot net | Date: | Sun, 09 Jun 2002 10:49:28 +0000 |
| Subject: | note 22170 added to function.ctype-alpha | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31620@lists.php.net to get a copy of this message | ||
The statement about ctype_alpha() being equivalent to (ctype_upper($text) || ctype_lower($text)) is
only true, if $text is just a single char or $text consists of only upper or lowercase letters. Try
(ctype_lower("AbC") || ctype_upper("AbC")) and you end up with a FALSE, although
the given text IS plain alpha.
--
http://www.php.net/manual/en/function.ctype-alpha.php
http://master.php.net/manage/user-notes.php?action=edit+22170
http://master.php.net/manage/user-notes.php?action=delete+22170
http://master.php.net/manage/user-notes.php?action=reject+22170