// 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 ");