#native_company# #native_desc#
#native_cta#

array based menu

By Rameshwor Maharjan
on June 18, 2006

Version: 1.0

Type: Full Script

Category: Other

License: GNU General Public License

Description: array based menu

<?
$menu=array("PHP"=>
                                array("Beginners"=>"index.php?mode=php_beginners",
								      "Intermediate"=>"index.php?mode=php_intermediate",
									  "Advance"=>"index.php?mode=php_advance"),
			"ASP"=>
			                    array("Beginners"=>"index.php?mode=asp_beginners",
								      "Intermediate"=>"index.php?mode=asp_intermediate",
									  "Advance"=>"index.php?mode=asp_advance"),
		    "ASP_NET"=>
			                    array("Beginners"=>"index.php?mode=aspnet_beginners",
							         "Intermediate"=>"index.php?mode=aspnet_intermediate",
									  "Advance"=>"index.php?mode=aspnet_advance")
			
            
			); 



foreach($menu as $mainheader => $subheader)
{
  echo($mainheader."<br>");
   foreach($subheader as $name=>$link)
   {
     echo("<a href=".$link.">".$name."</a><br>");
   }
}

?>