Hi All,
Is there a more efficient way to write the following code?
if (($x != $a) && ($x!= $b) && ($x != $c) && ($x != $d)) {
do something
}
Thanks
if (! in_array($x,array('a','b','c')){ do something; }
why not just keep it the way you have it?