Calculate number of days between two dates in php
<p>I am trying to calculate the number of days between 2 dates</p>

<p>Date format is dd/mm/yy</p>

<p>Dates are variable:</p>

<pre><code>$getarrival   = $_GET["arrival"];
$getdeparture = $_GET["departure"];
</code></pre>

<p>I tried this but it is not working when you change the date format.</p>

<pre><code>$start = strtotime('2010-01-25');
$end   = strtotime('2010-02-20');

$days_between = ceil(abs($end - $start) / 86400);
</code></pre>
