Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $months = array();
- $end_month = strtotime(date("Y-m"));
- $month_increment = strtotime("2009-09");
- while($month_increment != $end_month) {
- $months[] = date("Y-m", $month_increment);
- $month_increment = strtotime("next month", $month_increment);
- }
- $months[] = date("Y-m");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement