date_default_timezone_set('Asia/ShangHai'); $today = date('m-d',time());//获取当天日期 $week = date("w");//获取当天星期几