title: undefined offset notice when looping through arrays in php
body: <p>I have this code that loops through a list and post it in an option tag. But I get an undefined offset notice everytime I try to run it.</p>
  
  <pre><code>&lt;?php $datearray=array('Jan','Feb','Mar'); ?&gt;
  
  &lt;?php for($d=0;$d&lt;=sizeof($datearray);$d++){ ?&gt;
    &lt;select title="mm" name="month" id="month" class=""&gt; 
  
  
                            &lt;option&gt;&lt;?php echo $datearray[$d]; ?&gt;&lt;/option&gt;
                            &lt;?php } ?&gt;
  
       &lt;/select&gt; 
  </code></pre>
  
  <p>How do I solve this?Is there a better way on doing this?</p>