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;
}
function array_to_table2($tabla) {
$res = "<table border=1>";
foreach ($tabla as $n) {
$res .= "<tr>";
foreach ($n as $el) {
$res .= "<td>" . $el . "</td>";
}
$res .= "</tr>";
}
$res .= "</table>";
return $res;
}