RE: [PHP] Upper or Lower Case

From: Date: Tue, 07 Aug 2001 15:28:29 +0000
Subject: RE: [PHP] Upper or Lower Case
Groups: php.general 
Request: Send a blank email to php-general+get-61641@lists.php.net to get a copy of this message
Ok thanks, I found jons way the easiest: if ($name == "neo" || $name == "Neo") -----Original Message----- From: Bjorn Van Simaeys [mailto:cyberplasma@yahoo.com] Sent: 07 August 2001 16:24 To: php-general@lists.php.net 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 <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/ -- 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

« previous php.general (#61641) next »