title: Syntax error in switch statement
body: <p>My problem is the following: I have a switch-statement where I need to check if a string is equal to a specific symbol, however, with this code:</p>
  
  <pre><code>[...]
  switch($str) { 
      [...]
      case (: $output .= $example_array[rand(0,3)] . '|'; break;
  
      case ): $output .= $example_array[rand(4,8)] . '|'; break;
      [...]
  }
  [...]
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected 'case' (T_CASE) in [...]</p>
  </blockquote>
  
  <p>Do I need to change to <code>if</code> <code>else</code> statement or can I work around this somehow?</p>