+
95
-

回答

<?php
$date = date('Y-m-01'); //取得本月1日的日期字符串;
echo $date;
echo date('Y-m-d', strtotime($date . ' -1 day'));
?>

网友回复

我知道答案,我要回答