Re: case insenstive

From: Date: Tue, 05 Mar 2002 06:14:51 +0000
Subject: Re: case insenstive
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87229@lists.php.net to get a copy of this message
Use strtolower() or strtoupper() to change the case of a string. And yes doing the same thing twice in the same statement is overkill! :) if((substr(strtolower($author), 0, 1) == "a") || (substr(strtolower($author), 0, 1) == "a")){} ----- Original Message ----- From: "jtjohnston" <taylorjo@collegesherbrooke.qc.ca> To: <php-general@lists.php.net> Sent: Monday, March 04, 2002 11:08 PM Subject: [PHP] case insenstive > I need to make this case insensitive. This seems like over kill? > > if((substr($author, 0, 1) == "a") or (substr($author, 0, 1) == "a")) > { > } > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#87229) next »