Quote:
Originally Posted by projectigi
PHP Code:
for( foo = 0; foo < 100; foo++ )
{
for( bar = 0; bar < 100; bar++ )
{
meh[ foo ][ bar ] = blub;
if( /* do something that would exit the loop */ )
goto( lEndL01 );
}
}
Label lEndL01:
//after loop
you don't always want to end the whole function :P
|
Then structure your code better.
You could easily have those two loops in a function by themselves, and use "return" to end there, and send back the result of your function execution to the calling function.