title: PHP switch statement variable scope
body: <p>In PHP, how is variable scope handled in switch statements?</p>
  
  <p>For instance, take this hypothetical example:</p>
  
  <pre><code>$someVariable = 0;
  
  switch($something) {
  
      case 1:
          $someVariable = 1;
          break;
  
      case 2:
          $someVariable = 2;
          break;
  }
  
  echo $someVariable;
  </code></pre>
  
  <p>Would this print 0 or 1/2?</p>