RE: [PHP] == case-sensitive?

From: Date: Mon, 23 Sep 2002 11:43:43 +0000
Subject: RE: [PHP] == case-sensitive?
Groups: php.general 
Request: Send a blank email to php-general+get-117262@lists.php.net to get a copy of this message
Hi Hawk, > I've never really payed attention to this before, > but now I noticed that == is case-sensitive, how > do I make it == with different "cases" ? Just force the case while you're comparing the two: if (strtolower($a) == strtolower($b)) { echo "case-insensitive match"; } else { echo "no match"; } Cheers Jon

« previous php.general (#117262) next »