I do not understand where I made a mistake, I want to display the months for the year, but starting from the old ones. writing:
$datestart = date("mY",strtotime("-1 years")); for($mm = 1; $mm < 12; $mm++): $month = date($datestart, strtotime('+$mm month')); $month.'<br>'; endfor; but in the end, $month remains equal to $datestart