Ok thanks,
I found jons way the easiest:
if ($name == "neo" || $name == "Neo")
-----Original Message-----
From: Bjorn Van Simaeys [mailto:[EMAIL PROTECTED]]
Sent: 07 August 2001 16:24
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Upper or Lower Case
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 <[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]