Non sequitur.

C is a structured languaged and has goto. Why shouldn't PHP have goto?
Sometimes is pointless bundle together HTML and PHP and keep it in a if
statement or a function, like this

if(TRUE){
    ?> SHOW THIS <?
}else{
    ?> SHOW THAT <?
}

Whence such construction as below keep the codes clean as:

if(TRUE)
    goto OUTPUT1
else
    goto OUTPUT2

OUTPUT1:
?> SHOW THIS <?

OUTPUT2
?> SHOW THAT <?

BTW, if PHP has not goto commands some warning should be put with the
do{}while commentaries where it makes one to believe that there _is_ goto
commands, as it happened to me.


Best regards,

Carlos Cirello
----- Original Message -----
From: Rodolfo Gonzalez
To: Carlos U. Cirello Filho
Sent: Tuesday, June 11, 2002 3:33 PM
Subject: Re: [PHP] GOTO command. Doest it exist?




On Tue, 11 Jun 2002, Carlos U. Cirello Filho wrote:
> Yes... and it seems that there ain't any GOTO command.

Then, there isn't. I guess because it's a structured language, derived
mostly from C. If you need "goto" for some reason, you need to do your
work in ASP (VBscript). But you have if ... then, switch and other
structures, you shouldn't need goto anyway.

Regards,
Rodolfo.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to