I have a nested loop like so:
while(1){
while($something){
break & continue;
}
// More stuff that I don't want to process in this situation
}
I want to break out of the 2nd while loop and continue the 1st loop from the start (without finishing the 1st loop). Is this possible without using variables?
You can
continue 2;in your inner loop to continue the outer loop from the beginning.http://php.net/manual/en/control-structures.continue.php