switch($page)
{
case 'blah':
switch($section)
{
case 'blah2':
do_stuff();
break;
// ...
}
break;
// ...
}
I didn't actually test it that PHP supports nested switch statements, but basically you need some kind of control structure (switch/if-elseif-else) for the 'page', and then in each branch, have another control structure that decides what's appropriate to do for the specified 'section'