title: How to get count of month by year between 2 date range in php
body: <p>i am trying to calculate total of month group by years between two given dates in PHP.</p>
  
  <p>Start Date = '2011-02-01'<br>
  End Date = '2013-04-10'</p>
  
  <pre><code>Result :
  Year : Month
  2011 : 10
  2012 : 12
  2013 : 4
  </code></pre>