recorrer_array($idx); } if (is_array($val)) { recorrer_array($val); } } } //Llamas a la funcion $direccion = new direccion(); $AllDireccion = $direccion->GetAll(); recorrer_array($AllDireccion); */ $AllDireccion = $ciudad->GetAll(); $claves = array_keys($AllDireccion); $cant = count($AllDireccion); if ($cant > 0) { echo "<table border=1 width='400' align='center' class='filaPar'>"; for ($i = 0; $i < $cant; $i++) { echo "<tr align='center'>"; $value = count($AllDireccion["{$claves[$i]}"]); $claves2 = array_keys($AllDireccion["{$claves[$i]}"]); $cant2 = count($AllDireccion["{$claves[$i]}"]); //echo $cant2."<br>"; foreach ($AllDireccion["{$claves[$i]}"] as $valor) { echo "<td>{$valor} </td>"; } echo "<td><a href='paso.php?c=z&editar=" . $claves[$i] . "'><img border=0 src='imagenes/editar.jpg' width='20' height='20' ></a></td>"; //echo "<td><a href='paso.php?c=z&eliminar=".$claves[$i]."'><img border=0 src='imagenes/delete.jpg' width='20' height='20'></a></td>";