<?php
$months = array();
for ($i = 1; $i <= 12; $i++) {
$months[] = date("Ym", strtotime( date( 'Y-m-01' )." -$i months"));
}
print_r($months);
?>
$months = array();
for ($i = 1; $i <= 12; $i++) {
$months[] = date("Ym", strtotime( date( 'Y-m-01' )." -$i months"));
}
print_r($months);
?>
0 comments:
Post a Comment