- strtotime 中月份是0的巧妙应用,按照上年12月份算
$timestamp = strtotime('2021-00-03');
echo date('Y-m-d',$timestamp);
exit;
2020-12-03
$timestamp = strtotime('2021-00-03');
echo date('Y-m-d',$timestamp);
exit;
2020-12-03