convert year or month into days, PHP
<p>So I have used this method to get the difference between 2 dates.</p>

<pre><code>$diff = abs(strtotime($date2) - strtotime($date1));
$years = floor($diff / (365*60*60*24));
$months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
$days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));
</code></pre>

<p>Now, lets say that I want to convert the years and months into days. How do I do that?</p>
