I would like to create an IF statement that has one conditions for a variety of values... any ideas?
if ($a=1 OR $a=2){ echo "Hi"; } if ($a=3 OR $a=4){ echo "Bye"; }
Use the double equal sign to check your conditions, but is there a question in here?
if ($a ==1 || $a == 2){ echo "Hi"; } if ($a == 3 || $a == 4){ echo "Bye"; }
Thanks... It worked with the double equals... ooops... thanks again