您好,欢迎访问一九零五行业门户网

php自动获取上一个月的起始时间

$last_month = date('y-m', strtotime('last month'));
$last['first'] = $last_month . '-01 00:00:00';
$last['end'] = date(‘y-m-d h:i:s’, strtotime($last_month +1 month -1 day +23 hours +59 minutes +59 seconds));
其它类似信息

推荐信息