'index.php',
'About' => '#',
'Contact' => '#',
'Register' => 'register.php'
);
// The page being viewed:
$this_page = basename($_SERVER['PHP_SELF']);
// Create each menu item:
foreach ($pages as $k => $v) {
// Start the item:
echo '- ' . $k . '
';
} // End of FOREACH loop.
?>