昨天开始结束的时间戳: $start_time = strtotime(date("Y-m-d",strtotime("-1 day"))); $ends_time = strtotime(date("Y-m-d",