Hi Vipin,
What Jeremy suggested is right but,you will be back to LOOP3.I am not aware of any goto statement in PHP.
Here is a way how you can make it
write this conditionl statement in LOOP4
if (condition){ //
} else {
$fail="yes";break;
}
write this conditional statements in LOOP2 and LOOP3 (very first statements)
if ($fail=="yes"){
break;
}
Lastly in LOOP1 write this $fail="no";
Hope this meets your requirement.
Cheers
Ajay