Count total month
<p>I have to find total months between two dates in Unix timestamp formats. I want to create a PHP function for that. I've tried this:</p>

<pre><code>get_total_month($startunixdate, $endunixdate) {
    $monthdiff = $endunixdate-$startunixdate;
    $monthdiff = $monthdiff / 60*60*24*31; 
    return $monthdiff;
}
</code></pre>

<p>Does this function consider leap years as well as month with 30 and 31 separately, or it will just count an approximate month?</p>
