Why? about PHP array and php foreach loop
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2645499/why-does-php-overwrite-values-when-i-iterate-through-this-array-twice-by-referen">Why does PHP overwrite values when I iterate through this array twice (by reference, by value)</a>  </p>
</blockquote>



<pre><code>$arr=array('a','b','c');

foreach($arr as &amp;$v){
    echo $v;
}

foreach($arr as $v){
    echo $v;
}
</code></pre>

<p>the result is abcabb, not abcabc, why?</p>
