How to output content horizontally and repeatedly? The ratio is in the form of 4 columns and 5 rows
方法1 table>tr*5>td{$}*4
方法2
<?php
echo "<table border='1px solid' cellspacing ='0' cellpadding ='10' bgcolor='skyblue'>";
for ($i=0; $i < 5; $i++) {
echo "<tr>";
for ($j=0; $j < 4; $j++)
{
echo "<td>".$j."</td>";
}
echo "</tr>";
echo "</table>" ;
?>
方法1 table>tr*5>td{$}*4
方法2
<?php
echo "<table border='1px solid' cellspacing ='0' cellpadding ='10' bgcolor='skyblue'>";
for ($i=0; $i < 5; $i++) {
echo "<tr>";
for ($j=0; $j < 4; $j++)
{
echo "<td>".$j."</td>";
}
echo "</tr>";
}
echo "</table>" ;
?>