title: PHP Generate Array with number of month and year display
body: <p>I have two dates of the form:</p>
  
  <blockquote>
    <p>Start Date: 2010-12-24<br>
    End Date: 2011-10-06 (today)</p>
  </blockquote>
  
  <p>Now I need to generate an array for this group by month from the above start date and end date:</p>
  
  <pre><code>$arr_month['oct_11'] = array(
     'month'   =&gt; 'October 2011'
   );
   . 
   . 
   .
  $arr_month['feb_11'] = array(
     'month'   =&gt; 'Feb 2011'
   );
  
  $arr_month['jan_11'] = array(
     'month'   =&gt; 'January 2011'
   );
  
  $arr_month['dec_10'] = array(
     'month'   =&gt; 'December 2010'
   );
  </code></pre>
  
  <p>As you can see the table should be got 11 rows in the table if I use this array to generate a table.</p>