title: get number of weeks passing month and year php
body: <p>i know that have alot of question like this one, but i dont know if i'm blind or what, but i cant find a answer that qualify to my question, so here it go.</p>
  
  <p>i have 2 combobox - <code>month</code> and <code>year</code>, i need a function that bring to me the week number's from the month and year that i selected.</p>
  
  <p><strong>example:</strong> </p>
  
  <p>i select the date 02/2012 (m/yyyy), and the combo will bring the weeks that belongs to the month that i select. ( <strong>weeks from the year</strong> ).</p>
  
  <p>weeks:</p>
  
  <p><code>5, 6, 7, 8, 9</code></p>
  
  <hr>
  
  <p>my main objective is to pass to another function the week number to get the day's that this week have, like the returns of this function:</p>
  
  <pre><code>$week_number = 40;
  $year        = 2012;
  
  if($week_number &lt; 10){
     $week_number = "0".$week_number;
  }
  
  for($day=1; $day&lt;=7; $day++)
  {
      echo date('m/d/Y', strtotime($year."W".$week_number.$day))."&lt;br/&gt;";
  }
  </code></pre>
  
  <p>dont know if i make my self clear,but, any question by my guest.</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <p>resume: </p>
  
  <p>52 weeks in a year</p>
  
  <p>if i choose the month 2, the function should return <code>5, 6, 7, 8, 9</code>.</p>