I have the current function:
function getDaysBetween($start, $end) {
$start = strtotime($start);
$end = strtotime($end);
$dateDiff = abs($end- $start);
$daysBetween = floor($dateDiff/(60*60*24));
return $daysBetween;
}
The function above does return the days between.
So, for example, August 3 at 3.00 AM minus August 2 at 11PM gives 0.
In this case I would like it to return 1, since these are different days. How can I achieve that?