Re: goto label

From: Date: Tue, 09 Dec 2003 05:33:31 +0000
Subject: Re: goto label
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172227@lists.php.net to get a copy of this message
* Thus wrote Nitin (nitinmehta@kappa.net.in): > Hi all, > > I was wondering, if there's any way to achieve 'goto "label":' using > PHP The closest you'll get to label's in php is the break statement. while (loop) { while (loop) { break 2; // leave 2 loops } while (loop) { break; // leave this loop } } Curt -- If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP

« previous php.general (#172227) next »