$a = 1;while($a<=10){ echo $a; $a = $a+1;}do{ echo $a; $a = $a+1;}while($a<=10);//whilehe do while区别不满足循环条件时while循环体一个都不会输出do while是先输出一次循环体然后在循环 不满足条件也会先输出一次循环体