PHP根据日期获取星期几

2020-06-01

$weekarray=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];

echo $weekarray[date("w",strtotime("2018-10-6"))];

echo $weekarray[date("w",time())];



相关文章: