<?php $start_date = "2017-03-27"; $end_date = "2017-03-30"; $start = new DateTime($start_date); $end = new DateTime($end_date); while ($start < $end) { echo $start->format("Y-m-d")."\n"; $start->modify("+1 day"); }
You have javascript disabled. You will not be able to edit any code.