for loops & moving to next loop
Posted: Sun Aug 21, 2005 10:01 am
Hi,
Very basic question, but I've forgotton how to do this:
As you can see I want to skip the remainder of the script in a loop if a condition is met. I don't think break or return would work here. Must be some sort of next function.
Very basic question, but I've forgotton how to do this:
Code: Select all
foreach ($my_array as $temp_key => $temp_value)
{
if($condition)
//stop this loop and go to next
else
//continue with script
}