padding: 10px;
}
</style>
<?php
$arrays = [
[1, 34, 32 , 2, 4],
[3, 32, 13 , 11, 89],
[56, 11, 7 , 9, 95],
[14, 90, 333 , 23, 1],
[5, 33, 54 , 23, 41],
];
echo "<table>";
for ($i = 0; $i < count($arrays); $i++) {
echo "<tr>";
for ($x = 0; $x < count($arrays[$i]); $x++) {
echo "<td>" . $arrays[$i][$x] . "</td>";
}
echo "</tr>";
}
echo "</table>";
It looks like you posted long piece of code, consider editing it out and putting it on hastebin.com and pasting link to it instead. Alternatively, send your code in a file.
wait, you can't just echo stuff into source code...
Обсуждают сегодня