... foreach ($arr as $item) { // 2: increment counter inside the loop if ($counter++ >= 3) { // 3: conditionally break from the loop break ...
確定! 回上一頁