hello,
can i optimize this somehow:
switch ($cond) {
case 'a' : command_abc break; case 'b' : command_abc break; case 'c' : command_abc break; case 'd' : command_de break; case 'e' : command_de break; ... ...
default : command_x
}
switch ($cond) { case 'a' : case 'b' : case 'c' : command_abc case 'd' : case 'e' : command_de ... ... default : command_x }
switch ($cond) { case 'a' : case 'b' : case 'c' : command_abc ; break; case 'd' : case 'e' : command_de ; break; default : command_x; break; }