title: Get all days and date for a given month
body: <p>Would like to retrieve all days and date for a given month. Have this currently which shows all the days for the current month, but how do I parse in a specified month instead?</p>
  
  <pre><code>$list=array();
  for($d=1; $d&lt;=31; $d++)
  {
      $time=mktime(12, 0, 0, date('m'), $d, date('Y'));
      if (date('m', $time)==date('m'))
          $list[]=date('Y-m-d-D', $time);
  }
  echo "&lt;pre&gt;";
  print_r($list);
  echo "&lt;/pre&gt;";
  </code></pre>