function dumpManualStructure(&$sections, $depth) {
$br = false;
foreach ($sections as $id => $sd) {
if ($br) {
echo "
";
} else {
$br = true;
}
if ($depth > 0) {
echo str_repeat(' ', $depth * 2);
}
echo "
" . utf8entities($sd['title']) . "";
if (count($sd['subs'])) {
echo "
";
dumpManualStructure($sd['subs'], $depth + 1);
}
}
}
dumpManualStructure($manual, 0);
?>