$b=array(array('A','b'),array('c','d','e','f'),array('g','h','i')); echo "<pre>"; print_r($b); echo "</pre>"; echo $b[1][2]; echo "<br/>"; for ($i=0;$i<count($b);$i++){ for($j=0;$j<count($b[$i]);$j++){ echo "($i,$j) ".$b[$i][$j]." | "; } echo "<br/>"; } foreach($b as $valor){ foreach($valor as $letra){ echo $letra."|"; } echo "<br/>"; } for ($i = 0; $i < 5; $i++) for ($j = 0; $j < 5; $j++) $c[$i][$j] = $j + $i * 5; echo array_to_table($c); function array_to_table($tabla) { $res="<table border=1>"; for ($i = 0; $i < count($tabla); $i++) { $res.="<tr>"; for ($j = 0; $j < count($tabla[$i]); $j++) { $res.="<td>" . $tabla[$i][$j] . "</td>"; } $res.="</tr>"; } $res.="</table>"; return $res; } //Mezcla sin sentido, a lo loco: $tutifruti=array('juan'=>array('a','b','c'),'ana'=>array('c'=>3,'d'=>6,'e'=>8),'rosa'=>array('j','k',array(1,2,3,4))); var_dump($tutifruti);