<?php
$start = new DateTime('2010-12-02');
$end = new DateTime('2012-05-06');
$interval = DateInterval::createFromDateString('1 month');
$period = new DatePeriod($start, $interval, $end);
foreach ($period as $dt) {
}
PD9waHAKCiRzdGFydCAgICA9IG5ldyBEYXRlVGltZSgnMjAxMC0xMi0wMicpOwokZW5kICAgICAgPSBuZXcgRGF0ZVRpbWUoJzIwMTItMDUtMDYnKTsKJGludGVydmFsID0gRGF0ZUludGVydmFsOjpjcmVhdGVGcm9tRGF0ZVN0cmluZygnMSBtb250aCcpOwokcGVyaW9kICAgPSBuZXcgRGF0ZVBlcmlvZCgkc3RhcnQsICRpbnRlcnZhbCwgJGVuZCk7Cgpmb3JlYWNoICgkcGVyaW9kIGFzICRkdCkgewogICAgdmFyX2R1bXAoJGR0LT5mb3JtYXQoJ2QvbS9ZJykpOwp9