Possible Duplicate:
How to calculate the difference between two dates using PHP?
Date Difference in php?PHP 2つの日付間の月数の違いは?
は、私は今、私はそれらの間の数ヶ月の違いを必要とする
$fdate = "2011-09-01"
$ldate = "2012-06-06"
のような変数に2つの日付を持っています。
たとえば、来年の9月(9月)から6月(6月)に計算した場合、答えは10になります。結果として10が得られます。
PHPでこれを行うにはどうすればよいですか?
同様の質問[リンク](http://stackoverflow.com/questions/2681548/find-month-difference-in-php) – cyberbemon
重複:http://stackoverflow.com/search?q=date + difference + php – hakre
これはうまくいきますhttp://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php – nithi