i have a function that contains two while loop, i have some condition on one(which is inside of loop , means internal loop) loop and if those conditions become true then it shold exit from internal loop and go to external loop.
how to handle this in php, plz give me example or reference i m new to php
thanx
How to exit form a while loop
break();
According to the latest PHP manual, the command is actually break;. Also, if you're in a nested loop and you want to break out of two or more loops at the same time, use break #; where # is the number of loops you need to break out of.
http://php.lamphost.net/manual/en/control-structures.break.php