Today is the day of the week written in PHP. The first method is $ dadate (& quot; w & quot;); if ($ da & quot; 1 & quot;) {& nbsp; & nbsp; echo & quot; today is Monday & quot;} elseif ($ da & quot; 2 & quot;) {& nbsp; echo & quot today is the day of the week written in PHP
// The first method: $ 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 "Your input is incorrect !! ";}; // Method 2 $ ga = date (" w "); switch ($ ga) {case 1: echo" Today is Monday "; break; case 2: echo "Today is Tuesday"; break; case 3: echo "Today is Wednesday"; break; case 4: echo "Today is Thursday"; break; case 5: echo "Today is Friday"; break; case 6: echo "Today is Saturday"; break; case 0: echo "Today is Sunday"; break; default: echo "Your input is incorrect! ";}; // Echo" today is the week ". mb_substr (" May 15, 1234 ", date (" w "), 1," UTF-8 ");