title: PHP Difference in months between two dates?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php">How to calculate the difference between two dates using PHP?</a><br>
    <a href="https://stackoverflow.com/questions/1940338/date-difference-in-php">Date Difference in php?</a>  </p>
  </blockquote>
  
  
  
  <p>I have two dates in a variable like</p>
  
  <pre><code>$fdate = "2011-09-01"
  
  $ldate = "2012-06-06"
  </code></pre>
  
  <p>Now I need the difference in months between them.<br>
  For example, the answer should be 10 if you calculate this from month 09 (September) to 06 (June) of next year -  you'll get 10 as result.<br>
  How can I do this in PHP?</p>