Какой метод лучше и быстрее: if или switch?
if(x==1){ echo "hi"; } else if (x==2){ echo "bye"; } switch(x){ case 1 ... break; default; }