Re: GOTO?
| From: | JJeffman | Date: | Thu, 14 Dec 2000 14:12:08 +0000 |
| Subject: | Re: GOTO? | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5244@lists.php.net to get a copy of this message | ||
I'm not sure but I think php, as every modern non labeled language, hasn't a
"goto" structural statement. I didn't find it on the manual at least .
You should write the code in top-down approach, calling user defined
functions when you need repeat some peace of code.
HTH
Jayme.
http://www.conex.com.br/jjeffman
-----Mensagem Original-----
De: Ulf Wendel <ulf.wendel@phpdoc.de>
Para: Louis Aslett <laslett@sixnet.net>
Cc: <php-db@lists.php.net>; Julio Cuz, Jr. <jcuz@rccd.cc.ca.us>
Enviada em: quarta-feira, 13 de dezembro de 2000 17:48
Assunto: Re: [PHP-DB] GOTO?
>
>
> Louis Aslett wrote:
> >
> > Hi Julio,
> >
> > There is a GOTO construct which works much like many other languages,
eg:
> >
> > if ($a == $b)
> > goto END;
> > .. code ..
> > if ($c == $d)
> > goto END;
> > .. code ..
> > END:
> > .. more code ..
>
> Hmm, the snippet does not work on my machine. Can you explain the syntax
> a little better?
>
> Ulf
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>