<?php
$i = 1;
do {

    echo $i;
    $i = $i + 1;

    if ($i >= 5) {
        echo "break<br>";
        break;
    }

} while ($i <= 8);
?>

082-PHP的do-while循环break跳出

 

相关文章:

  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
猜你喜欢
  • 2022-01-17
  • 2021-06-06
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-05-16
  • 2021-07-27
相关资源
相似解决方案