title: Grouping dates into Months in php
body: <p>Created the make time below to display biweekly dates</p>
  
  <pre><code>&lt;?php
    $date1 = "07/05/2013";
    $date2 = date('M j, Y', strtotime($date1 . " + 14 day"));
    $date3 = date('M j, Y', strtotime($date2 . " + 14 day"));
    $date4 = date('M j, Y', strtotime($date3 . " + 14 day"));
    $date5 = date('M j, Y', strtotime($date4 . " + 14 day"));
    $date6 = date('M j, Y', strtotime($date5 . " + 14 day"));
    $date7 = date('M j, Y', strtotime($date6 . " + 14 day"));
    $date8 = date('M j, Y', strtotime($date7 . " + 14 day"));
    $date9 = date('M j, Y', strtotime($date8 . " + 14 day"));
    $date10 = date('M j, Y', strtotime($date9 . " + 14 day"));
    $date11 = date('M j, Y', strtotime($date10 . " + 14 day"));
    $date12 = date('M j, Y', strtotime($date11 . " + 14 day"));
    $date13 = date('M j, Y', strtotime($date12 . " + 14 day"));
    $date14 = date('M j, Y', strtotime($date13 . " + 14 day"));
    $date15 = date('M j, Y', strtotime($date14 . " + 14 day"));
    $date16 = date('M j, Y', strtotime($date15 . " + 14 day"));
    $date17 = date('M j, Y', strtotime($date16 . " + 14 day"));
    $date18 = date('M j, Y', strtotime($date17 . " + 14 day"));
  ?&gt;
  </code></pre>
  
  <p>How can I get it to group together by Month? Let say I want to know how many dates land in August, or December. Also if I wanted to get how many dates till end of the year? Helping hand will be greatly appreciated.  </p>