<?php $start = new DateTime('2018-10-25'); $end = new DateTime('2018-10-29'); while ($start <= $end) { $list[] = $start->format('Y-m-d'); $start->modify('+1 day'); } print_r($list);
You have javascript disabled. You will not be able to edit any code.