PHP 获取本年的开始时间与结束时间
$start_time = date('Y-01-01 00:00:00', time()); $end_time = date('Y-12-31 23:59:59', time());
PHP 获取本年的开始日期与结束日期
$start_date = date('Y-01-01); $end_date = date('Y-12-31');