title: Edit code to also include the last date selected
body: <p>What changes can I apply to the code below, in order to include all the dates in the range, rather than all the dates except for the last one.  Currently if dates selected are: 01-05-2015 and 04-05-2015 ->
  Result is: 
  01-05-2015, 02-05-2015, 03-05-2015, whereas the desired result is: 01-05-2015, 02-05-2015, 03-05-2015, 04-05-2015.</p>
  
  <pre><code>    function daterange($booking_from, $booking_to, $step = '+1 day', $output_format = 'Y-m-d') {
    $dates = array();
    $first = new DateTime($booking_from);
    $last = new DateTime($booking_to);
    $interval = DateInterval::createFromDateString($step);
    $period = new DatePeriod($first, $interval, $last);
  
    foreach ($period as $date) {
        $dates[] = $date-&gt;format($output_format);
    } 
  
    return $dates;
  }
  
  $dates = daterange($booking_from, $booking_to);
  </code></pre>