PHP 获取一周的时间
$date = array( 'Monday' => array(date('Y-m-d H:i:s',strtotime("Monday")),date('Y-m-d H:i:s',strtotime("Monday 23:59:59"))), 'Tuesday' => array(date('Y-m-d H:i:s',strtotime("Tuesday")),date('Y-m-d H:i:s',strtotime("Tuesday 23:59:59"))), 'Wednesday' => array(date('Y-m-d H:i:s',strtotime("Wednesday")),date('Y-m-d H:i:s',strtotime("Wednesday 23:59:59"))), 'Thursday' => array(date('Y-m-d H:i:s',strtotime("Thursday")),date('Y-m-d H:i:s',strtotime("Thursday 23:59:59"))), 'Friday' => array(date('Y-m-d H:i:s',strtotime("Friday")),date('Y-m-d H:i:s',strtotime("Friday 23:59:59"))), 'Saturday' => array(date('Y-m-d H:i:s',strtotime("Saturday")),date('Y-m-d H:i:s',strtotime("Saturday 23:59:59"))), 'Sunday' => array(date('Y-m-d H:i:s',strtotime("Sunday")),date('Y-m-d H:i:s',strtotime("Sunday 23:59:59"))), ); var_dump($date);