Starter Code for Daily Exercises

// store each exercise in a string variable$exercise1 = 'Display "Hello World!"';$exercise2 = 'Convert Pounds to Kilograms';$exercise3 = 'Convert Kilograms to Pounds';$exercise4 = 'Convert Miles to Kilometers';$exercise5 = 'Convert Kilometers to Miles';$exercise6 = 'Month long string of the day';$exercise7 = 'String of the day with levels';// create a variable containing the day of the week// use an if statement to test for the day of the week// display the corresponding exercise string

Documentation

The date() function returns a string formatted according to the given format string.

'N' returns a numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday)