note 22170 deleted from function.ctype-alpha by didou
| From: | didou@php.net | Date: | Tue, 28 Oct 2003 09:08:36 +0000 |
| Subject: | note 22170 deleted from function.ctype-alpha by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59407@lists.php.net to get a copy of this message | ||
Note Submitter: iqDOTgobo@gmxDOTnet
----
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.