title: modify array in loop
body: <p>Here is the code:</p>
  
  <pre><code>$arraya = array('a','b','c');
  foreach($arraya as $key=&gt;$value)
  {
      if($value == 'b')
      {
          $arraya[] = 'd';
          //print_r($arraya);    //$arraya now becomes array('a','b','c','d')
      }
      echo $key.' is '.$value."\n";
  }
  </code></pre>
  
  <p>and it will get:</p>
  
  <pre><code>0 is a
  1 is b
  2 is c
  </code></pre>
  
  <p>And I wonder why <code>3 is d</code> doesn't show up??</p>