title: php-How can i put this IF condition inside switch?
body: <p>Please help me for correcting this code,i want put if inside switch:</p>
  
  <pre><code>switch ($urlcomecatid) {
  
   if ($urlcomeparentid == 1 || $urlcomeparentid == 2 || $urlcomeparentid == 3)
    break;
  
  case "50":
  case "51":
  case "52":
  case "109":
  case "110":
      //do nothing and exit from switch
      break;
  default:
      header ("Location:http://www.example.com/tech/tech.php"); exit();
      break;
  </code></pre>
  
  <p>}  </p>