Re: Upper or Lower Case
| From: | Bjorn Van Simaeys | Date: | Tue, 07 Aug 2001 15:23:50 +0000 |
| Subject: | Re: Upper or Lower Case | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61639@lists.php.net to get a copy of this message | ||
Hi,
I have run accross this problem too, and I solve it
this way:
if(strtolower($name1) == strtolower($name2))
I compare both variables in lower case, this way
capitals don't matter at all.
Greetz,
Bjorn Van Simaeys
www.bvsenterprises.com
--- Tarrant Costelloe <tcostelloe@insur-e.net> wrote:
> When doing the following if statement:
> if ($name == "neo")
> How can you specify that it doesn't matter whether
> the first letter of "Neo"
> is in captials or not.
>
> Thanks!
>
> Taz
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/