<?php for ($i = 0; $i <= 12; $i++) { $months[] = date("Y-m", strtotime( date( 'Y-m-01' )." -$i months")); } print_r($months);
You have javascript disabled. You will not be able to edit any code.