Basic programming question..
Use if/else when you know a few possible values for your variable, but cannot predict all possible values. For instance, say you're making a decision based on the length of a string:
In pseudocode..
if(string length ==0)
do x;
else if(string length <10)
do y;
else //string length is greater than 10
do z;
Use th switch/case combination when you can reliably predict all possible values of a variable. And I mean no "greater thans","less thans", etc.. Only when you know every single value that your variable could possibly be.
switch($var){
case 0
do x;
case 1
do y;
case 2
do z;
} //no other values of $var are possible