Outputting data from a for loop
<p>Can you please help me in getting data out of this for loop. It actually should print the names of 3 months, which it does if i dont use the $ period variable in there and use echo instead. But I want to put the value into the $period variable, so I can use it else where in my script. Right now, it print out only one month.</p>

<pre><code>for ($i=1; $i&lt;=3; $i++)
  {
  $period = '&lt;option value=""&gt;';
  $period .= date('F, Y', strtotime('+'.$i.' month'));
  $period .= '&lt;/option&gt;';
  }         

  echo $period;
</code></pre>
