title: php concatenate in loop
body: <p>I have these on my code</p>
  
  <pre><code>$from_m = 1;
  $to_m = 6;
  
  while( $from_m &lt;= $to_m )
  {
      if($from_m == 1)
          $m = "January";
  
      if($from_m == 2)
          $m = "February";
  
      if($from_m == 3)
          $m = "March";
  
  
      $add = "OR month = '$m' ";
  
      $from_m++;
  }
  </code></pre>
  
  <p>as a result</p>
  
  <pre><code>$add = "OR month = 'March' ";
  </code></pre>
  
  <p>what I wanted is...</p>
  
  <pre><code> $add = "OR month = 'January' OR month = 'February' OR month = 'March' ";
  </code></pre>
  
  <p>how can I do that way? </p>
  
  <p>any help?</p>