Re: checking for upper case letter on string
| From: | Jason Wong | Date: | Thu, 12 Aug 2004 22:31:14 +0000 |
| Subject: | Re: checking for upper case letter on string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193660@lists.php.net to get a copy of this message | ||
On Friday 13 August 2004 05:32, C.F. Scheidecker Antunes wrote:
> 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.
if ($doo === strtolower($doo)) { // no upper case }
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Too much is just enough.
-- Mark Twain, on whiskey
*/