I'm attempting something like the following:
switch ($p) {
foreach ($modules as $m) {
case '"'.$mod.'"':
include 'modules/'.$m.'/cases.php';
break;
}
}
but can't get it to work. Is it possible to use a for loop in this manner, inside a switch?