php $i = 10; do{ echo $i++; //輸出$i,並且每次+1 } while($i < 10); //output:10 ?> 這個範例其實跟 while 迴圈的最後一個範例一樣,只是改成用 do...while ...
確定! 回上一頁