2
   <?php
   
    // 本周开始结束时间
    $this_week_start = date('Y-m-d H:i:s', strtotime('-1 week monday 00:00:00'));
    $this_week_end = date('Y-m-d H:i:s', strtotime('sunday 23:59:59'));
    
    // 上周开始结束时间
    $last_week_start = date('Y-m-d H:i:s', strtotime('monday last week 00:00:00'));
    $last_week_end = date('Y-m-d H:i:s', strtotime('sunday last week 23:59:59'));
    // 上月开始时间结束时间
    $last_month_start = date('Y-m-d H:i:s', strtotime("first day of last month 00:00:00"));
    $last_month_end   = date('Y-m-d H:i:s', strtotime("last day of last month 23:59:59"));

    // 当月开始时间结束时间
    $this_month_start = date('Y-m-d H:i:s', strtotime("first day of this month 00:00:00"));
    $this_month_end   = date('Y-m-d H:i:s', strtotime("last day of this month 23:59:59"));

    // 下月开始时间结束时间
    $next_month_start = date('Y-m-d H:i:s', strtotime("first day of next month 00:00:00"));
    $next_month_end   = date('Y-m-d H:i:s', strtotime("last day of next month 23:59:59"));

inheader
4 声望0 粉丝