for ($i = 0; $i < count($matriz); $i++){ for ($j = 0; $j < count($matriz[$i]); $j++) { echo $matriz[$i][$j]; }}