Today is the day of the week PHP
The first notation $da = Date ("W"), if ($da = = "1") { echo "today is Monday";} else if ($da = = "2") { echo "today is Tuesday";} else if ($da = = "3") { echo "today is Wednesday";} else if ($da = = "4") { echo "today is Thursday";} else if ($da = = "5") { echo "today is Friday";} else if ($da = = "6") { echo "today is Saturday";} else if ($da = = "0") { echo "today is Sunday";} else{ echo "you entered wrong!";};/ /second notation $ga = Date ("W"), switch ($GA) {case 1:echo "today is Monday"; break; Case 2:echo "Today is Tuesday"; Case 3:echo "Today is Wednesday"; Case 4:echo "Today is Thursday"; Case 5:echo "Today is Friday"; Case 6:echo "Today is Saturday"; Case 0:echo "Today is Sunday"; Default:echo "you entered the wrong!" ";};/ /The Third Way echo "Today is Week". Mb_substr ("Day 123456", Date ("W"), 1, "utf-8");