while workflow? ? Or do I need to determine where the variable is defined? ?
spelty
spelty 2017-07-12 21:48:48
0
2
1365

<?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>';

?>


spelty
spelty

reply all(2)
安妮

Every cycle is the same, you just follow each cycle to see the data

ringa_lee

The variable values ​​defined in the loop are of course different from the values ​​defined outside the loop

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template