RE: [PHP-WIN] simple: if ( '$foo = more that one expression ) { }

From: Date: Fri, 25 Aug 2000 13:35:37 +0000
Subject: RE: [PHP-WIN] simple: if ( '$foo = more that one expression ) { }
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2138@lists.php.net to get a copy of this message
switch (strtolower($foo)) { case "north": case "south": case "west": case "mount": $go.=$dosomething; break; } CodeDuck > -----Original Message----- > From: Asendorf, John [mailto:JAsendorf@lcounty.com] > Sent: Thursday, August 24, 2000 5:31 PM > To: CodeDuck@gmx.net > Subject: RE: [PHP-WIN] simple: if ( '$foo = more that one expression ) { > } > > > Dear Duck, > > You're no quack! This was exactly what I was looking for... > (after beating > my head against the wall for a while trying to use the others...) > > I just have a question about it... > > How can I make the cases case-insensative? > > ie: > > case "north" or "North" or "nORTH" (for people who forget > they have > their capslock on :) or "NoRtH" (for wannabe hackers): > > Thanks in advance, > > John

« previous php.windows (#2138) next »