<?php
$i = 0;
$j = 0;
echo '<table width = "800" border ="2">';
while ($i<8)
{
echo '<tr>';
while ($j<8)
{
echo '<td>'.$i."&".$j.'</td>';
$j ;
}
echo '</tr>';
$i ;
}
echo '</table>';
?>
和
<?php
$i = 0;
echo '<table width = "800" border ="2">';
while ($i<8)
{
$j = 0;
echo '<tr>';
while ($j<8)
{
echo '<td>'.$i."&".$j.'</td>';
$j ;
}
echo '</tr>';
$i ;
}
echo '</table>';
?>
Every cycle is the same, you just follow each cycle to see the data
The variable values defined in the loop are of course different from the values defined outside the loop