Re: GOTO command. Doest it exist?

From: Date: Tue, 11 Jun 2002 21:41:34 +0000
Subject: Re: GOTO command. Doest it exist?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101621@lists.php.net to get a copy of this message
Many will tell you that the goto command is extinct. It isn't, it's just evolved into the function command. What you do now is create a function: function some_name($variable,$other_variable,...) { some code here; } then, call it using : call_user_func('some_name',$variable,$other_variable,...) It's just like goto, it goes to a specified code block and then returns to the line below the call, but takes more typing. Hope this helps. Hugh ----- Original Message ----- From: "Carlos U. Cirello Filho" <carloscirello@ieg.com.br> To: <php-general@lists.php.net> Sent: Tuesday, June 11, 2002 12:34 PM Subject: [PHP] GOTO command. Doest it exist? > I do beg your pardon... But does PHP not have GOTO command? > > Am I wrong? > > Carlos Cirello > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#101621) next »