title: How to find a start date & end date of any given year & month
body: <p>I have problem in php find start date &amp; end date of month &amp; year , when i know the year and month ?</p>
  
  <p>ex: </p>
  
  <pre><code>input - &gt; year = 2011 , month = 08
  output -&gt; start date = 01 , end date = 31
  </code></pre>