title: Switch statement in PHP injected HTML
body: <pre><code>&lt;? switch ($var): ?&gt;
    &lt;? case 1: ?&gt;
      It's 1!
    &lt;? break ?&gt;
  &lt;? endswitch ?&gt;
  </code></pre>
  
  <p>I want to do something like that, in other words use the switch statement in PHP templates. This is possible with the if statement. The above code generates <code>Parse error: syntax error, unexpected T_INLINE_HTML, expecting T_ENDSWITCH or T_CASE or T_DEFAULT</code> in PHP 5.3. The <a href="http://php.net/manual/en/control-structures.switch.php">PHP docs</a> suggests that this should be possible.</p>
  
  <p>Can someone confirm that this doesn't work, or rather, tell me what I'm doing wrong?</p>
  
  <p>Thanks.</p>