You can also do this.
switch ($num) {
case "1":
do stuff here;
break;
case "2":
do diff stuff here;
break;
case "3":
do even diff stuff here;
break;
default:
do this if none of the above cases are true;
}
This usually wouldnt be used with numbers, but maybe something like auction?action=sell, auction?action=buy, and if none of those conditions were met for the action switch, then the default case would kick in, which might just display a listing. Just a thought of how to do it diff when you want a default to happen if a variable isnt specified.