I was refactoring some old code and stumbled on a continue 2
that can be easily replaced with a break.
for($rows as $i){
for($columns as $j){
if( Helper::unicornExists($i, $j) ){
//continue 2;
break;
}
}
}
If we say that continue 2
makes the code more complicated and hard to read ,
is there any good reason to use it (in 2 level) nested loops ?