tryphp_if_elseif.php:
The hour (of the server) is " . $t; echo ", and will give the following message:"; if ($t < "10") { echo "Have a good morning!"; } elseif ($t < "20") { echo "Have a good day!"; } else { echo "Have a good night!"; } ?>
The hour (of the server) is 13, and will give the following message:
Have a good day!