title: Finding Quarter of the year for current day and next four quarter
body: <p>How to construct an array having elements current Quarter as first element and next four quarters as next elements. </p>
  
  <p>Consider for the year 27-Nov-13,<br>
  array should contain elements as follows</p>
  
  <pre><code>$ac_quarters = array (AC4-13,AC1-14,AC2-14,AC3-14,AC4-14);
  </code></pre>
  
  <p>Please see me as novice to PHP programming. 
  Currently I have written code as shown below. Surely there gotta be better logic than this.</p>
  
  <pre><code>$date = "2013-1-13"; 
  $d = date_parse_from_format("Y-m-d", $date); 
  
  if ($d["month"]==1 || $d["month"]==2 || $d["month"]==3) {
      $ac_quarters = array (AC1-13,AC2-13,AC3-13,AC4-13,AC1-14);
  
  } 
  </code></pre>