suchen

Heim  >  Fragen und Antworten  >  Hauptteil

während Workflow? ? Oder muss ich bestimmen, wo die Variable definiert ist? ?

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

?>


speltyspelty2774 Tage vor1396

Antworte allen(2)Ich werde antworten

  • 依依惜别离

    依依惜别离2017-07-13 13:25:12

    每一次的循环是一样的,你顺着每一次的循环看数据就啦

    Antwort
    0
  • ringa_lee

    ringa_lee2017-07-13 13:11:20

    循环里定义的变量值和循环外定义的值,当然不一样啦

    Antwort
    0
  • StornierenAntwort