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 ↩︎