Testing multiple values efficiently in PHP
Questions: Okay, so I have a few possible matches that I need to test. It can either equal A or B, so the obvious way to test it would be something like this: if($val==”A”||$val=”B”){ echo “yup”; } I was just wondering if their were an easier way to test values without restating the variable for… Read More »