时间戳的一个简单搞法

public function get_etime($month) {
    $BeginDate=date('Y-m-01', strtotime($month));
    $EndDate = date('Y-m-d', strtotime("$BeginDate +1 month -1 day"));
    $month_end= strtotime("next day", strtotime($EndDate)) - 1;//指定年月份月末时间戳
    return $month_end;
}
原文地址:https://www.cnblogs.com/cyxng/p/15492743.html