title: PHP Convert timestamp to months and days
body: <p>How can I convert a timestamp difference between 2 dates</p>
  
  <pre><code>$diff = abs(strtotime($date2) - strtotime($date1));
  </code></pre>
  
  <p>to months and days quantity as desired ouput:</p>
  
  <pre><code>$res = 4.05 //-&gt; 4 months and 5 days
  </code></pre>