Home > Q&A > body text
<?php
$a=true;
if($a){
echo'rich';
echo'buy snacks';
}
else{
echo'no money';
echo'can't afford it';
?>
卢小强2019-10-25 13:36:45
Then the second one is FALSE,
卢小强2019-10-25 08:41:30
You can add another if ($a=false) {echo '!!!!1'} to the if to see the result
After changing $a to false, the second result will be output