📜  在php代码示例中获取下个月的最后一天

📅  最后修改于: 2022-03-11 14:53:43.589000             🧑  作者: Mango

代码示例2
$lastDateOfNextMonth =strtotime('last day of next month') ;

$lastDay = date('d/m/Y', $lastDateOfNextMonth);

 

print_r($lastDay);