PHP获取某个时间戳是周几。
/** * @param int $time * @return mixed */ function getWeekStr($time = 0) { !$time && $time = time(); $week = date('w', $time); $list = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"]; return $list[$week]; }