<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

 

相关文章:

  • 2022-02-02
  • 2022-12-23
  • 2022-01-09
  • 2021-11-18
  • 2021-10-12
  • 2021-11-20
猜你喜欢
  • 2022-01-17
  • 2022-12-23
  • 2021-07-27
  • 2021-05-16
  • 2022-12-23
  • 2021-04-13
  • 2021-12-17
相关资源
相似解决方案