title: Get the year, month week, day, hour, minute, second interval on two dates in PHP
body: <p>How can I get the year, month week day, hour, minute, second interval on two dates on php?</p>
  
  <p>For example:</p>
  
  <p><code>date1 = 2015-9-24</code>
  <code>date2 = 2015-12-25</code></p>
  
  <p>Output:</p>
  
  <p><code>3 months and 1 day left</code></p>
  
  <p>Thanks guys.</p>