$array = array(1,2,3); foreach ($array as $item){ if ($item == 2) { break; } echo $item; }. 輸出「1」,因爲環被打破永遠,前回波能夠打印「2」。
確定! 回上一頁