Php If

muho61

Paylaşım Ekibi
Üyelik Tarihi
23 Aralık 2020
Mesajlar
262
Beğeniler
2
Ticaret: 0 / 0 / 0
Kod:
<!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 "Have a good morning!"; } elseif ($t <  "20") {      echo "Have a good day!"; } else {      echo "Have a good night!"; } ?>   </body> </html>
 
Üst