So I programmed this in 5.3 but 5.2x doesn't support the DateInterval and DatePeriod classes.
Can somebody assist me with making this code 5.2x friendly. I'm really not sure where to start without it turning 4 lines into 400.
//Create array with all dates within date span
$begin = new DateTime( $start_date );
$end = new DateTime(date("Y-m-d",strtotime("+1 day", strtotime($end_date))));
$interval = new DateInterval('P1D'); //P1D=Period 1 Day
$period = new DatePeriod($begin, $interval, $end);