rocky 发表于 2019-2-13 23:53:41

"continue" targeting switch is equivalent to "break".

在 php 7.3 的 switch 中使用 continue 会出现警告。1 2 3

while ($foo) {
    switch ($bar) {
      case "baz":
            continue; // In PHP: Behaves like "break;"
                      // In C:   Behaves like "continue 2;"
    }
}
最好的方式是把 continue 改为 continue 2 或 break

"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

坑死宝宝了
页: [1]
查看完整版本: "continue" targeting switch is equivalent to "break".