9.3.1 Parentheses
In general, it is a good idea to use parentheses in expressions that contain multiple operators to avoid operator precedence issues. Even though operator precedence may be clear to you, it may not be so to others. You cannot assume that other programmers know operator precedence as well as you do.
if ($a == $b && $c == $d) // Wrong
if (($a == $b) && ($c == $d)) // Correct