title: Which is Faster and better, Switch Case or if else if?
body: <p>Which is the better and fastest methods : if or switch ?</p>
  
  <pre><code>if(x==1){
    echo "hi";
  } else if (x==2){
    echo "bye";
  }
  
  switch(x){
    case 1
      ...
    break;
    default;
  } 
  </code></pre>