I want how to extract the exact number of nights. I tried to achieve this by two ways but doesn't work. It return 20 nights but in real, it is 21 nights (March have 31 days)
$startTimeStamp = strtotime("14-03-2017");
$endTimeStamp = strtotime("04-04-2017");
$timeDiff = abs($endTimeStamp - $startTimeStamp);
$numberDays = $timeDiff/86400; // 86400 seconds in one day
$numberDays = intval($numberDays);
echo $numberDays;
echo floor((strtotime('04-04-2017')-strtotime('14-03-2017'))/(60*60*24));