I have a more practical problem, kinda the same question...
I have a menu, and a sub menu below it. I want the current page in the main menu to be highlighted, which I did, but the problem is the sub menu has multiple pages.. so the main menu item has to be highlighted for all the possible submenu items....
//"Events" is a title in the menu, that has the sub pages 02, 05, 03, 09...
$events = array('02', '05', '03', '09');
//Season Tickets same thing, sub pages of 33, 34, 23, 26
$seasontickets = array('33', '34', '23', '26');
//.. and so on
//All different main menu pages to list with the first subpage number...
$titles = array(
'Events' => '02',
'Season Tickets' => '33',
'News' => '13',
'Upcomming' => '19',
'Settings' => '39',
'Users' => '47',
'Logout' => '99'
);
$page = (!empty($_GET['act'])) ? $_GET['act'] : null;
foreach($titles as $k => $v) {
//html was here
if (in_array($v, $events)) { echo " bgcolor='#eaeaea'"; }
//more html was here
echo "<a href='?act=$v&sub=$v'>$k</a>";
}

So, I'm trying to get 'Events' to be highlighted, if its on page 'Main' (02), 'Manage' (05) etc.. which I managed to do by adding in_array($v, $events) but, that obviously doesn't work when I'm in a different main menu item than 'events'...
I don't know what I'm looking for.. maybe is there a way a key in an array can be an OR statement or something, so 'Events' => '02' OR '05' OR ..etc,
Please help,