-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path21.switch.php
More file actions
31 lines (28 loc) · 885 Bytes
/
21.switch.php
File metadata and controls
31 lines (28 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
$day = "Wednesday";
switch($day){
case "Monday":
echo "Today is Monday, the first day of the week";
break;
case "Tuesday":
echo "Today is Tuesday, the second day of the week";
break;
case "Wednesday":
echo "Today is Wednesday, the third day of the week";
break;
case "Thursday":
echo "Today is Thursday, the fourth day of the week";
break;
case "Friday":
echo "Today is Friday, the fifth day of the week";
break;
case "Saturday":
echo "Today is Saturday, the sixth day of the week";
break;
case "Sunday":
echo "Today is Sunday, the seventh day of the week";
break;
default:
echo "Invalid Day, please check the day";
}
?>