//Define the winning variable. The value of the variable is true, which means you have won the prize.
$zhongjiang = u;
//Because $ zhongjiang The result is true, so it displays: "Buy a House"
//You can change it to false to try the execution result. If it is false, echo 'Buy a House' will not be executed;
if($zhongjiang){
echo 'Buy a house';
}
//Follow-up code
echo 'What should you do?';
?>
If the judgment condition behind if asks about a variable, and its value is the following situations, it will return false
1: Boolean value FALSE
2: Integer value 0 (zero)
3: Floating point value 0.0 (zero)
4: Blank string and string "0"
5: Array without member variables
6: Object without cells (only for PHP 4)
7: Special type NULL (including variables that have not been set)
By default, 0 is false and non-0 is true. You can use this idea. If the variable is empty, it will also be judged as false.