and I was wondering whether there's a way to shorten the comparison to something like if($var == (2 || 3)), which I've tried and it doesn't work. thanksif( $var == 2 || $var == 3){ .. do stuff .. }
In reply to comparison with bitwise operators by alextor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |