Calculate days since a timestamp?
<p>This one works for dates in format: 0000-00-00</p>

<p>But I need a function for unix timestamp format</p>

<pre><code>function dateDiff($start, $end) {

    $start_ts = strtotime($start);

    $end_ts = strtotime($end);

    $diff = $end_ts - $start_ts;

    return round($diff / 86400);

}
</code></pre>

<p>Could anyone help a brother out??</p>
