Re: Re: if elseif elseif elseif....

From: Date: Sat, 07 Mar 2009 14:04:06 +0000
Subject: Re: Re: if elseif elseif elseif....
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-289540@lists.php.net to get a copy of this message
On Sat, Mar 7, 2009 at 02:12, Paul M Foster <paulf@quillandmouse.com> wrote: > > Someone would add gotos to a language *on purpose*?! Keep in mind that, unlike BASIC, the PHP implementation of GOTO will go to a label. Don't worry, you don't have to start line programming. <?php 10: //HELLOWORLD.PHP 20: // TELL THE WORLD HELLO. 30: 40: INPUT "IS NOW A GOOD TIME"; NOW$ 50: A$ = LEFT$(NOW$,1) 60: IF A$ = "Y" OR A$ = "y" THEN GOTO 80 70: GOTO 40 80: PRINT "HELLO WORLD!" ?> (Those of you who read multiple threads on multiple lists will notice that this is probably the fifth time in the last month that the discussion of BASIC has come up and the fifth time it's come to tossing out some BASIC pseudo-code. As an aside, BASIC was developed forty-five years ago this year!) -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

« previous php.general (#289540) next »