search

Home  >  Q&A  >  body text

Is this the right way to write it?

while(list($key,$value)=each($arr)){

    echo "<h2>" . $key . "</h2>";

    echo "<table width='500' border='1'>";

    while(list($k,$v)=each($value)){      

        echo '<tr>';

        while(list($kk,$vv)=each($v)){

           echo '<td>' . $vv . '</td>';

        }

        echo '</tr>';

    }

    echo '</table>'; 

}


不靠譜°ζ不靠譜°ζ2510 days ago1517

reply all(1)I'll reply

  • 哦

    2018-03-24 15:51:14

    $key just set it to the center

    reply
    0
  • Cancelreply