Hi Taz,

What happens if they type "NeO", or "NEO", or "nEo", or "neO" (etc)? ;)
Also, if you're using this in a large application (or intend to in the
future), are you going to type out all of the names as you have done with
the neo example?
Bjorn's method is much better, and you're better off getting into good
practice early.

James

"Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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



-- 
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]

Reply via email to