这段php代码通过do while语句对变量$i进行累加
<html> <body> <?php $i = 0; $num = 0; do { $i++; }while( $i < 10 ); echo ("Loop stopped at i = $i" ); ?> </body> </html>
输出结果如下
Loop stopped at i = 10
这段php代码通过do while语句对变量$i进行累加
<html> <body> <?php $i = 0; $num = 0; do { $i++; }while( $i < 10 ); echo ("Loop stopped at i = $i" ); ?> </body> </html>
输出结果如下
Loop stopped at i = 10