title: PHP switch case two variables in the case
body: <p>I have an array that holds the <code>group_id_status</code> values <code>0</code>, <code>1</code></p>
  <p><code>$_POST['id']</code> gives me the values of the selected checkboxes as an array like this : <code>132,133,134</code></p>
  <p>i gives array</p>
  <pre class="lang-php prettyprint-override"><code>$array_id_status = array(
      $value =&gt; $customers-&gt;group_id_status
  );
  </code></pre>
  <p>when i set var_dump , gived to me this</p>
  <pre class="lang-php prettyprint-override"><code>array(1) { [134]=&gt; string(1) &quot;0&quot; } array(1) { [133]=&gt; string(1) &quot;0&quot; } array(1) { [132]=&gt; string(1) &quot;1&quot; }**
  </code></pre>
  <p>now i want show some message to user from switch case</p>
  <p>like this when each checkboxes is selected</p>
  <pre><code>switch ($array_id_status)
  {
      case ($array_id_status[$value] == 0 &amp;&amp; $array_id_status[$value] == 1):
      echo &quot;Different values are selected&quot;;
      case ($array_id_status[$value] == 1):
      echo &quot;Can not change&quot;;
      case ($array_id_status[$value] == 0):
      echo &quot;generated GROUP ID 1&quot;;
  }
  </code></pre>