Re: One variable not equal to 2 values.

From: Date: Thu, 25 Sep 2003 23:49:50 +0000
Subject: Re: One variable not equal to 2 values.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164008@lists.php.net to get a copy of this message
* Thus wrote Ed Curtis (ed@homes2see.com): > > How would I write this statement: > > if $thisvar is not equal to this value or that value. { do stuff } > Ok. I have to throw this in for historical purposes :) switch ($thisvar) { case 'thisvalue': case 'thatvalue': break; default: // do stuff break; } Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#164008) next »