Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <body> <?php $t = date("H"); echo "<p>The hour (of the server) is " . $t; echo ", and will give the following message:</p>"; if ($t < "10") { echo "Bonne matinée !"; } elseif ($t < "20") { echo "Bonne journée !"; } else { echo "Bonne nuit !"; } ?> </body> </html>
The hour (of the server) is 10, and will give the following message:
Bonne journée !