Notice
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
Tags
- html5
- UML
- chart.js
- 설치
- 안드로이드
- dovecot
- 안드로이드 푸시
- WebView
- C# IO
- Android
- mysql
- Mail Server
- 자동 생성
- 안드로이드 푸쉬
- php 시큐어코딩
- C#
- soundpool
- android 효과음
- 자바스크립트
- FCM
- roundcube
- 폼메일
- php 취약점
- javascript
- 안드로이드 gcm
- curl
- not working
- xe
- 우분투
- PHP
Archives
- Today
- Total
그러냐
php continue Warning 뜨는 경우 본문
반응형
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ...
이런 메세지 뜨는 경우
php 7.3? 이상인 경우
www.php.net/manual/en/control-structures.continue.php
여기를 참조 해보면 continue 가 어느 단계의 continue인지 명확히하라는 의미 같다
예를 들어
for(){
for(){
continue;
}
}
이런 경우 첫 번째 loop의 contine인지 두번째 loop의 continue 인지 명확히하라는
그래서
for(){
for(){
continue 2;
}
}
for(){
for(){
for(){
continue 3;
}
}
}
이렇게 쓰면 되는데
switch 문 같은 경우 loop로 판정되기때문에 switch 문에서 흔히 쓰는 default: continue 같은 경우에도 위의 워닝이 뜨게 된다
반응형
'php' 카테고리의 다른 글
| Window환경에서 Laravel 개발환경 구축 (0) | 2021.04.28 |
|---|---|
| PHPExcel Exception not found 이미지 첨부시 오류 (0) | 2021.02.03 |
| [PHP]CSV파일 다운로드, 한글 깨짐, UTF-8 BOM (0) | 2019.12.30 |
| curl_multi를 이용한 병렬처리 (0) | 2019.11.11 |
| [PHPEXCEL] phpexcel 사용법 (0) | 2019.10.24 |