Fw: [PHP] GOTO command. Doest it exist?

From: Date: Wed, 12 Jun 2002 00:51:50 +0000
Subject: Fw: [PHP] GOTO command. Doest it exist?
Groups: php.general 
Request: Send a blank email to php-general+get-101653@lists.php.net to get a copy of this message
----- Original Message ----- From: "hugh danaher" <hdanaher@earthlink.net> To: "Carlos U. Cirello Filho" <carloscirello@ieg.com.br>; "php" <php-general@lists.php.net> Sent: Tuesday, June 11, 2002 2:41 PM Subject: Re: [PHP] GOTO command. Doest it exist? > 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 (#101653) next »