title: while(list($key, $value) = each($array)) vs. foreach($array as $key => $value)?
body: <p>Recently I experienced this weird problem:</p>
  
  <pre><code>while(list($key, $value) = each($array))
  </code></pre>
  
  <p>was not listing all array values, where replacing it with...</p>
  
  <pre><code>foreach($array as $key =&gt; $value)
  </code></pre>
  
  <p>...worked perfectly.</p>
  
  <p>And, I'm curious now.. what is the difference between those two?</p>