Re: How to: If($var != '#' OR '#')

From: Date: Wed, 20 Nov 2002 21:34:50 +0000
Subject: Re: How to: If($var != '#' OR '#')
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125334@lists.php.net to get a copy of this message
At 18:24 20.11.2002, Jami said: --------------------[snip]-------------------- >I have code that says: > >if($_GET['sc'] != '2' OR '8'){ > do this..... >} --------------------[snip]-------------------- besides all other good examples, you could also if (in_array($_GET['sc'], array('2','8'))) { do this..... } -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#125334) next »