How can I add a path to a name that is stored in an array? My arrangement is as follows:
Array ([Archive] = > Array ([0] => Online Catalog [1] = > link ) [System Administration] = > Array ([0] => Areas and Axes [1] = > link
But when I print it out it goes like this:
Acervo(nombre del menu) Catálogo en línea(submenus del menu) http://palacioba.ddns.net:8081/palacio/soe/intranet/pieza3/index.jsp
(summenu route)
Administración del sistema Áreas y Ejes http://palacioba.ddns.net:8081/palacio/soe/intranet/proyectos/GridProyectos.jsp
I would like to add the route within the name of the submenu, my code is as follows:
$resultMenus = $catalogo->obtenerLista($consulta);
while ($row2 = mysql_fetch_array($resultMenus)) {
if (array_key_exists($row2['nom_menu'], $Menu)) {
array_push($Menu[$row2['nom_menu']], $row2['nom_sub'],$row2['Rutas']);
}else{
$NombreMenu=$row2['nom_menu'];
$Menu[$NombreMenu]= array($row2['nom_sub'],$row2['Rutas']);
}
}
foreach($Menu as $key => $value){
$mykey = $key;
echo'<h1>' .$mykey.'</h1>';
foreach ($value as $value1 => $valueSubmenu) {
echo "<br>".$valueSubmenu."<br>";
//echo "<a href=' $valueSubmenu'>";
}
}