Subject: PHP

Switch Case for Day of the Week

Create a variable $day = 3

Use a switch statement to print the name of the day based on the value of $day (1 = Monday, 2 = Tuesday, etc.).

Select file or drag and drop

PNG, JPG, SVG

Preview