strtotimeでunix timestampに変換してから、ループ処理を行ってください。
下記のコードは、1ヶ月で処理をループさせるために$startに+1 monthしています。
$start = strtotime('2012-01-01'); $end = strtotime('2013-12-31'); while($start < $end) { echo date('F Y', $start), PHP_EOL; $start = strtotime("+1 month", $start); }
PHP5.3以上でしたら以下のPHPマニュアルを使用することができます。ご確認ください。
http://www.php.net/manual/ja/class.dateperiod.php
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。