Re: GOTO and/or BREAK LABEL

From: Date: Tue, 07 Mar 2006 18:48:14 +0000
Subject: Re: GOTO and/or BREAK LABEL
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi,

On Tuesday 07 March 2006 19:14, Robert Cummings wrote:
> I don't remember, but I think Sarah Golemon allowed for it in one of her
> patches way back:
>
> <?php
>
> $map = array
> (
>     1 => 'bad',
>     2 => 'good',
>     3 => 'bad',
>     4 => 'acceptable',
> );
>
> goto $map[$choice];

NOOO - If we add goto only with static labels. Everything else is a total 
mess.

johannes


Thread (106 messages)

« previous php.internals (#22223) next »