altight, id look in my php book, but i lent it to my friend, so my question is as follows:
I have a loop, within a loop, and in the second loop, there is an if statement. Now, when/if this if statement happens to be true, i want to end the second loop, and do the next first loop. I know this makes no sense, so heres some basic code to illustrate my question:
foreach ($var as $value){ // first loop
foreach ($var2 as $value2){ // second loop
if ($value2 == $value){ // if statement
... stop second loop...;
}
else {
... keep checking second loop for match...;
}
}
}
my question is: how do i stop the second loop, and proceed with the first once the if statement has been true?