checking for upper case letter on string
| From: | C.F. Scheidecker Antunes | Date: | Thu, 12 Aug 2004 21:32:33 +0000 |
| Subject: | checking for upper case letter on string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193656@lists.php.net to get a copy of this message | ||
Hello all,
I need to check if there are any upper case letters on a given string. There can be one or more letters that might be upper case on a given string no matter their position within the string.
Is there any way to check for it?
obs: I do not want to convert to lowercase, but to check for the presence of upper case letters.
I copuld iterate through the string and evaluate each caracter but I wonder if there is a more effective method to achieve that.
examples:
uyYmfawelk = returns true
YlsngfswU = returns true
kjnsdfW = true fwerg;m = falsethanks in advance.