$a = random_int(0, 10); $b = random_int(0, 10); if ($a > $b) { echo 'a is greater than b'; } elseif ($a == $b) { echo 'a is equal to b'; } else { echo 'a is less than b'; }
<?php if ($a > $b) { echo "a is bigger than b"; $b = $a; } ?>
<?php if ($a > $b) echo "a is bigger than b"; ?>
if ($t < "20") { echo "Have a good day!"; } else if($t < "40" { echo "Have a good afternoon!"; } else{ echo "Have a good evening!"; }