title: PHP `continue` not working as expected
body: <p>The problem I'm having is that PHP isn't handling my <code>continue</code> correctly. My code is as follows:</p>
  
  <pre><code>$count = -1;
  foreach ($lines as $item){
      $count++;
  
      if ($item == ""){
          continue;  // don't process empty items
      }
      if ($count &gt; 0){
          echo '-not the first line-';
      }
  
      switch ($item){
          case "item1":
              echo "item 1 found";
          break;
      }
  }
  </code></pre>
  
  <p>The <code>if ($count &gt; 0)</code> part executes regardless of where the <code>continue</code> is placed before it, but the <code>switch</code> executes as expected.</p>
  
  <p>If I remove the <code>if ($count &gt; 0)</code> and place it <strong>inside</strong> the switch, it executes as expected:</p>
  
  <pre><code>    switch ($item){
          case "item1":
              if ($count &gt; 0){
                  echo '-not the first line-';  // executes as expected
              }
              echo "item 1 found";
          break;
      }
  </code></pre>
  
  <p>Is this normal? Thanks</p>