Quote:
Originally Posted by screen_name
Is it possible to nest multiple switch statements together?
|
Do you mean like this?
PHP Code:
switch (foo) {
case "bar":
switch (foo2) {
case "bar2":
break;
case "baz2":
break;
}
break;
case "baz":
break;
}
Possible? Probably. But why would you want to complicate it like that?