Jump to content

switch statements


wrathican

Recommended Posts

can i nest the inside eachother? E.G:

 

switch ($_GET['xyz'])

{

case "a":

  swicth ($_GET['uvw']

  {

  case "c":

  do some stuff

  break;

 

  case "d":

  do something else

  break;

  }

 

break;

 

case "b":

  swicth ($_GET['uvw']

  {

  case "e":

  do some other stuff

  break;

 

  case "f":

  do something other than everything else

  break;

  }

 

break;

}

Link to comment
https://forums.phpfreaks.com/topic/58931-switch-statements/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.