View Single Post
  #2  
Old 08-22-2009, 01:27 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by screen_name View Post
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?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote