Re: Re: GOTO command. Doest it exist?

From: Date: Tue, 11 Jun 2002 20:36:10 +0000
Subject: Re: Re: GOTO command. Doest it exist?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-101614@lists.php.net to get a copy of this message
OK, Anyway goto's are bad and wrong things... And one shouldn't use it. I am wrong in trying to solve such problem using it. But I was really amazed that PHP did not have goto.... Kind Regards, Carlos Cirello "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message news:000e01c21183$ab49e590$8102a8c0@niigziuo4ohhdt... > [snip] > Subject: Re: [PHP] GOTO command. Doest it exist? > [/snip] > > No, and you don't need it. The reason? Ask yourself, "what is the use of a > GOTO?". Usually GOTO indicates a function of some sort, which you could > easily replicate with a function() or switch() if you need to send your > application in a different direction depending upon a set of circumstances. > > HTH! > > Jay > >

« previous php.general (#101614) next »