Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute PHP Online Mohammed Elhadi SE4

<?php
   
  function familyName($fname, $year) {
    echo "$fname Refsnes. Born in $year ";
}

familyName("Mohammed", "1996\n");
familyName("Ahmed", "1997\n");
familyName("Essam", "1998\n");

$t = date("H");

if ($t < "10") {
    echo "Have a good morning!";
} 
elseif ($t < "20") {
    echo "Have a good day!";
} else {
    echo "Have a good night!";
}

?>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.