说明 + 代码
do...while语句和前面的while语句有些不同,它的条件判断语句放在最后,所以do..while语句循环中的语句至少会执行一次:
<?php
$num
=5;
do{
echo 
$num;
}
while(
$num<5);
?>
输出结果 5