I am trying to do this. But for some reason or does not work. How do you do an or statement with PHP??
if ($var == 8 or $var == 9) { print "is eight or nine"; } else { print "not eight or nine"; }
||
The solution is to use an array and search it:
$numberarray = array(8, 9);
if (in_array($var, $numberarray)) { print "is eight or nine"; } else { print "not eight or nine"; }