I am trying to calculate the number of days between 2 dates
Date format is dd/mm/yy
Dates are variable:
$getarrival = $_GET["arrival"];
$getdeparture = $_GET["departure"];
I tried this but it is not working when you change the date format.
$start = strtotime('2010-01-25');
$end = strtotime('2010-02-20');
$days_between = ceil(abs($end - $start) / 86400);