Re: How to break out of nested loops

From: Date: Mon, 17 Mar 2003 22:50:24 +0000
Subject: Re: How to break out of nested loops
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-140056@lists.php.net to get a copy of this message
Cheers buddy, didn't think of that! ;o) "Philip Hallstrom" <philip@adhesivemedia.com> wrote in message news:20030317144625.M16506@tigger.alkinetworks.com... > http://www.php.net/manual/en/control-structures.break.php > > -philip > > On Mon, 17 Mar 2003, Bix wrote: > > > I have a for loop within a for loop, and need to break out of both > > together... > > > > for ( blah ) { > > for ( blah ) { > > if ( true ) { break; } // only breaks out of this loop, how can I break it > > out of both loops. > > } > > } > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#140056) next »