<?php $start = new DateTime('2013-11-07'); $end = new DateTime('2013-12-31'); $weeks = array(); while ($start < $end) { $weeks[] = $start->format('d-m-Y'); $start->modify('+7 days'); } print_r($weeks);
You have javascript disabled. You will not be able to edit any code.