why won't this work? I get the following error:
Parse error: parse error, expecting T_CASE' orT_DEFAULT' or `'}'
can I not say $subMenu($j+1) to make it $subMenu1, $suBMenu2, etc? or is the problem elsewhere?
for($i=0; $i < count($mainMenuItems); $i++) {
if($main == $i)
$button = 2;
else $button = 1;
switch ($i) {
for($j=0; $j < 6; $j++) {
case $j:
$subMenu = $subMenu($j+1);
break;
}
}
print some stuff;
}