I don't even have an idea of where to start for this. I need to display 100 numbers in a table and would like to use a while loop to do so. Is there a "shortcut" to doing this?
4条回答 默认 最新
dsjz1119 2016-05-11 13:13关注For a table you need some tags
table,trandtd. Thetrandtdare in while loop and the value$iwill print inside thetd.<table> <?php $i = 1; while($i != 101){?> <tr><td><?php echo $i++;?></td></tr> <?php }?> </table>本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报