title: Displaying the list of months using mktime for the year 2012
body: <p>Am am current facing a problem that need a solution ASAP.</p>
  
  <p>I am trying to list all months of the current year(2012) by using the following code:</p>
  
  <pre><code>for ($m=1; $m&lt;=12; $m++) {
       $month = date('F', mktime(0,0,0,$m));
       echo $month. '&lt;br&gt;';
       }
  </code></pre>
  
  <p>But am getting the following unexpected output:</p>
  
  <p>January
  March
  March
  May
  May
  July
  July
  August
  October
  October
  December
  December</p>
  
  <p>What am I doing wrong please help!!!</p>