- 服务端开发/管理
- 在 php 7.3 中 switch 语句中使用 continue
while ($foo) {
switch ($bar) {
case "baz":
continue; // In PHP: Behaves like "break;"
// In C: Behaves like "continue 2;"
}
}
最好的方式是把 continue 改为 continue 2 或 break
https://wiki.php.net/rfc/continue_on_switch_deprecation ↩︎
https://github.com/aces/Loris/issues/4037 ↩︎
https://github.com/squizlabs/PHP_CodeSniffer/pull/2086 ↩︎