$today=date("Y-m-d");
echo $today; //You can get what day it is today. Output2014-9-29
//First define an array.
$rows=array("日","一","二","三","四","五","六");
echo "Today is Sunday".$rows[date("w")]."
";
//Note date("w"), this can get the numerical day of the week such as 123. Note that 0 is Sunday. Array subscripts start from 0.
//Quickly get the date corresponding to this Monday
echo "This Monday is".date('Y-m-d',strtotime("this Monday"))."
";
//Output 2014-9-29. Since today happens to be Monday, the result is quite special. If you are interested, you can open it tomorrow and try to see if the result is correct
//Quickly get the date corresponding to next Monday
echo "This Monday is".date('Y-m-d',strtotime("next Monday"))."
";//Output 2014-10-6
?>
PS: The strtotime() function parses any English text datetime description into a Unix timestamp.
Attached is the English equivalent of the week: Monday Monday ['m?ndi, 'm?ndei]
Tuesday ['tju:zdi]
Wednesday Wednesday['wenzdei, 'wenzdi]
Thursday Thursday['θ?:zdi]
Friday['fraidi]
Saturday['s?t?di]
Sunday['s?ndi]