title: switch statement with two variables at a time
body: <p>Could someone suggest the best way to have the following switch statement? I don't know that it's possible to compare two values at once, but this would be ideal:</p>
  <pre><code>switch($color,$size){
      case &quot;blue&quot;,&quot;small&quot;:
          echo &quot;blue and small&quot;;
      break;
  
      case &quot;red&quot;,&quot;large&quot;;
          echo &quot;red and large&quot;;
      break;
  }
  </code></pre>
  <hr/>
  This could be comparable to:
  <pre><code>if (($color == &quot;blue&quot;) &amp;&amp; ($size == &quot;small&quot;)) {
      echo &quot;blue and small&quot;;
  }
  elseif (($color == &quot;red&quot;) &amp;&amp; ($size == &quot;large&quot;)) {
      echo &quot;red and large&quot;;
  }
  </code></pre>
  <hr/>
  <p><strong>Update</strong>
  I realized that I'll need to be able to negate <code>($color !== &quot;blue&quot;)</code> and compare as opposed to equating variables to strings.</p>