title: Semicolon after foreach statement has "interesting" result. Why?
body: <p>Just had an <em>AHA!</em> moment with adding a <code>;</code> after a <code>foreach</code> loop by accident. Funnily this didn't throw an error, but skipped(?) everything in the loops array and just touches the last element.</p>
  
  <p>Test code:</p>
  
  <pre><code>$test_array = array(
      'a' =&gt; 'one',
      'b' =&gt; 'two',
      'c' =&gt; 'three'
  );
  foreach ( $test_array as $key =&gt; $val );
      echo $val;
  </code></pre>
  
  <p>Question: Why does this happen?</p>