[Php 4, Php 5, Php 7, Php 8] Lưu ý: Trong Php, câu lệnh chuyển đổi được coi là một cấu trúc vòng lặp cho các mục đích của Bỏ qua dấu chấm phẩy sau Người ta có thể mong đợi kết quả là: Jaimthorn tại Yahoo Dot Com ¶ ¶ ¶ 12 năm trước Nikolay Ermolenko ¶ ¶ 13 năm trước Koen ¶ ¶ ¶ 9 năm trước rjsteinert.com ¶ ¶ 11 năm trướccontinue
được sử dụng trong các cấu trúc vòng lặp để bỏ qua phần còn lại của lần lặp vòng lặp hiện tại và tiếp tục thực hiện ở mức đánh giá điều kiện và sau đó bắt đầu lần lặp tiếp theo.continue
. continue
hành xử như break
[khi không có tranh luận nào được thông qua] nhưng sẽ đưa ra cảnh báo vì đây có thể là một sai lầm. Nếu một switch
nằm trong một vòng lặp, continue 2
sẽ tiếp tục với lần lặp tiếp theo của vòng ngoài.: In PHP the switch statement is considered a looping structure for the purposes of continue
. continue
behaves like break
[when no arguments are passed] but will raise a warning as this is likely to be a mistake. If a switch
is inside a loop, continue 2
will continue with the next iteration of the outer loop. : In PHP the switch statement is considered a looping structure for the purposes of continue
. continue
behaves like break
[when no arguments are passed] but will raise a warning as this is likely to be a mistake. If a switch
is inside a loop, continue 2
will continue with the next iteration of the outer loop. continue
chấp nhận một đối số số tùy chọn cho biết nó có bao nhiêu mức các vòng lặp bao quanh mà nó sẽ bỏ qua đến cuối. Giá trị mặc định là continue
2, do đó bỏ qua cuối vòng lặp hiện tại.continue
3continue
có thể dẫn đến sự nhầm lẫn. Đây là một ví dụ về những gì bạn không nên làm.continue
0continue
Phiên bảnSự mô tả 7.3.0 continue
trong một switch
đang cố gắng hành động như một tuyên bố break
cho switch
sẽ kích hoạt continue
6.continue
6. continue
6.
continue
7continue
8continue
9continue
0continue
1continue
2continue
3continue
4continue
5continue
6continue
7continue
8continue
9break
0break
1
continue
4www.derosetechnology.com ¶ ¶
18 năm trước
break
3
break
4
break
5
break
6
break
7
continue
4Greg tại Laundrymat.tv ¶ ¶ ¶
17 năm trước
break
9
switch
0
switch
1
switch
2
switch
3
switch
4
switch
5
continue
4Tufan dot oezduman tại gmail dot com ¶ ¶ ¶
15 năm trước
switch
7
switch
8
continue
4Clau r Jimenez ¶ ¶ ¶
1 năm trước
continue 2
0
continue 2
1
continue 2
2
continue
4Người đam mê ¶ ¶ ¶
14 năm trước
continue 2
4
continue 2
5
continue
4MPARSA1372 tại Gmail Dot Com ¶ ¶ ¶
1 năm trước
continue 2
7
continue 2
8
continue 2
9
continue
4Người đam mê ¶ ¶ ¶
11 năm trước
continue
1
continue
2
continue
4www.derosetechnology.com ¶ ¶
18 năm trước
continue
4
continue
5
continue
6
continue
4Greg tại Laundrymat.tv ¶ ¶ ¶
17 năm trước
continue
8
continue
9
continue
20
continue
21
continue
22
continue
23Người đam mê ¶ ¶ ¶
14 năm trước
continue
24
MPARSA1372 tại Gmail Dot Com ¶ ¶ ¶
17 năm trước
continue
25
continue
26
continue
27
continue
4Tufan dot oezduman tại gmail dot com ¶ ¶ ¶
15 năm trước
continue
29
continue
30
continue
31Clau r Jimenez ¶ ¶ ¶
1 năm trước
continue
32
continue
33
continue
34
continue
35
continue
36Người đam mê ¶ ¶ ¶
17 năm trước
continue
37
continue
38
continue
39
continue
0
continue
1
continue
2
continue
3
continue
4Tufan dot oezduman tại gmail dot com ¶ ¶ ¶
17 năm trước
continue
5
continue
6
continue
7
continue
8
continue
9
continue
4Tufan dot oezduman tại gmail dot com ¶ ¶
15 năm trướcend the current iteration in a for , foreach , while or do.. while loop, and continues to the next iteration.
Clau r Jimenez ¶ ¶
1 năm trướcit jumps to the update expression.
Người đam mê ¶ ¶
14 năm trướcIt can appear inside while, do while, for as well as foreach loop.
MPARSA1372 tại Gmail Dot Com ¶ ¶
PHP tiếp tục làm gì?. The break statement terminates the whole loop early whereas the continue brings the next iteration early.