title: PHP Get months in specific quarter
body: <p>I am trying to create a function in php that allows me to pass a quarter (1,2,3 or 4) to it and then have it return the month names in that quarter.</p>
  
  <p>Example if Quarter was 1 :</p>
  
  <pre><code>function($quarter){
  
     //Based on the current quarter, the months returned are as follows:
     January, February, March
  
  }
  </code></pre>
  
  <p>How could I achieve this with the output being an array of the 3 months in the quarter? The only 2 values that I will have to use with the function is the year and the quarter. (I have a drop down of years and 1-4 for the quarters. They will select one from each drop down and then I need the months within that quarter <em>I know the months will be the same regardless of the year</em>.</p>