Another quick question! Is there a shorthand way to test multiple variables against the same criteria within an IF statement where only 1 of the variables needs to match for it trigger the statement? For example, I would normally use:
if ($var1 == 1 || $var2 == 1 || $var3 == 1 || $var4 == 1) {To do something like this - but it's quite longwinded. What i'm after is a shorter way to test whether any of those variables == 1.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |