When I try this:
$a = 1; $b = 2; print ($a && $b) . \"\\n\";
The result is 2. Why?
Because the && operator evaluates the right operand and returns the result when the left operand evaluates to true.
&&