PHP7.3中在switch中使用continue语句会出现如题警告。
while ($foo) {
switch ($bar) {
case "baz":
continue; // In PHP: Behaves like "break;"
// In C: Behaves like "continue 2;"
}
}使用break或者continue 2代替。
PHP7.3中在switch中使用continue语句会出现如题警告。while ($foo) { switch ($bar) { case "baz": continue; // In PHP: Behaves like "break;" // In C: Behaves like "continue 2;" } }使用break或者continue 2代...
PHP7.3中在switch中使用continue语句会出现如题警告。
while ($foo) {
switch ($bar) {
case "baz":
continue; // In PHP: Behaves like "break;"
// In C: Behaves like "continue 2;"
}
}
评论
0成为第一个留下想法的人。