Home - assignment 1 - assignment 2
This will message will say "Have a nice day and the dayof the week unless it is Sunday, in which case it will say "Back to work tomorrow".
$d=date("D");
if ($d=="Sun") echo "Back to work tomorrow";
else echo "Have a nice day this beautiful ", date(D);
Have a nice day this beautiful Fri
Note: The (D) in the date function defines the format of the output as a three letter interpretation of the weekday ie Thu not Thur or Thursday.