Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2000121

Re: [PHP-DB] GOTO? From: JJeffman (jjeffmanweb <email protected>)
Date: 12/14/00

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 <email protected>>
Para: Louis Aslett <laslett <email protected>>
Cc: <php-db <email protected>>; Julio Cuz, Jr. <jcuz <email protected>>
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 <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>