1$lastDateOfNextMonth =strtotime('last day of next month') ;
2
3$lastDay = date('d/m/Y', $lastDateOfNextMonth);
4
5
6
7print_r($lastDay);
1//Last month
2$lastMonth = Date("F", strtotime("first day of previous month");
3$nextMonth = Date("F", strtotime("first day of next month");