(PHP has || and OR. JS only has ||.)
JS. According to MDN || has higher precedence than =<
As to your followup question: if ( $d = $c && $e = $b && $f = $a ) is the same as:
$d = $c;
if($d) {
$e = $b;
if($e) {
$f = $a;
if($f) {
...
}
}
}
I assume you know this, but some of the questions are confusing to me, so I'll mention it... = is an assignment operator, not a comparison operator. if($a = $b) doesn't check if $a and $b are the same, it makes $a equal $b, then checks if $a evaluates to true. if($a == $b) checks if the two variables are the same.