$today = strtotime(date("Y-m-d",time()));//今天 2018-11-11 00:00:00
$startday = strtotime(date('Y-m-01')); //本月初 2018-11-01 00:00:00
$endday = strtotime(date('Y-m') . '-' . date('t',time())." 23:59:59"); //本月末

文档更新时间: 2020-07-23 19:23   作者:Yoby