Skip to content

Instantly share code, notes, and snippets.

@maks-rafalko
Created October 15, 2017 10:52
Show Gist options
  • Save maks-rafalko/5ee241c877db79b0571917d5e4bdf75a to your computer and use it in GitHub Desktop.
Save maks-rafalko/5ee241c877db79b0571917d5e4bdf75a to your computer and use it in GitHub Desktop.
// 1. in the loop
foreach ($someVar as $record) {
// ...
- break;
+ continue;
}
// 2. in the switch statement
switch ($someVar) {
case SOME_CONST:
// do action
- break;
+ continue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment