Menu Array - Create a navigation menu based on an array.
<? // Below is the array containing all the menu data: // Add as many as you need // This script found at: https://sanpbuilder.com Free Public Codes Library $menu = array( "Home" => "index.php", "About Us" => "about_us.php", "Members" => "members.php", "Products" => "products.php", "Services" => "services.php", "Contact Us" => "contact_us.php", ); // Below will generate the menu based on the array. echo "<h3>Navigation</h3><br />"; foreach($menu as $name => $link) { // below will be the output links echo "<a href='$link'>$name</a><br />"; } // End. ?>