I was migrating production code from PHP5.3
to PHP7.1
, code had break 2;
inside nested two level of while loop inside if condition, I got below error:
PHP Fatal error: Cannot 'break' 2 levels
Why two level of break has been removed in PHP7.1 and what could be it's alternate solution?