<html> <body> <?php $i=1; while($i<=5) { echo "The number is " . $i . "<br>"; $i++; } ?> </body> </html>
输出
The number is 1 The number is 2 The number is 3 The number is 4 The number is 5
<html> <body> <?php $i=1; while($i<=5) { echo "The number is " . $i . "<br>"; $i++; } ?> </body> </html>
输出
The number is 1 The number is 2 The number is 3 The number is 4 The number is 5
转载于:https://www.cnblogs.com/sea-stream/p/10087171.html