<? PHP/* logic and operation */$ A = 1; if (false & $ A ++) echo $ A; else echo $ A; // output 1, because the first condition is false, the logical expression returns false directly, so $ A ++ does not execute $ A = 1; if (true & $ A ++) echo $; // output 2, the first condition is true, so the expression $ A ++, $ A ++ returns 1, and then $ A plus 1 equals 2, the logical operation between true and 1 is true, and the output $ A is 2 $ A = 0; If (true & $ A ++) echo 'OK'; else echo $; // Output 1. The first condition is true, so $ A ++ is judged. This expression returns the value 0 of $ A, and then $ A plus 1 equals 1, the logical operation between true and 0 is false. The value of $ A in else output is 1?> Or is used to determine the first condition first. If the first condition is true, the logical expression returns true directly without judging the second condition.