$i = 10; while($i-->0){ echo $i." "; } echo "<br/>"; do{ echo $i." "; }while($i++<10)
输出:
9 8 7 6 5 4 3 2 1 0
-1 0 1 2 3 4 5 6 7 8 9 10
$i = 10; while($i-->0){ echo $i." "; } echo "<br/>"; do{ echo $i." "; }while($i++<10)
输出:
9 8 7 6 5 4 3 2 1 0
-1 0 1 2 3 4 5 6 7 8 9 10