Re: note 90854 rejected from control-structures.if by thiago

From: Date: Wed, 13 May 2009 13:22:44 +0000
Subject: Re: note 90854 rejected from control-structures.if by thiago
References: 1 2  Groups: php.notes 
Request: Send a blank email to php-notes+get-154550@lists.php.net to get a copy of this message
This shouldn't have been rejected, because it's not a request for help. If you read the code, the person is trying to show that different if/elseif/else styles can't be mixed in a block. However, it *should* be removed from the manual, because it doesn't actually TELL you that. So if it pops up again, simply *delete* as opposed to *remove*, that's all. ;-P On Wed, May 13, 2009 at 09:07, <thiago@php.net> wrote: > Note Submitter: faisun at sina dot com > > ---- > > PHP Version: 5.2.9.2 > > <? > if(2>1): >        echo "ABCD"; >        if(4>3){ echo "EFGH"; } > else: >        echo "123456"; > endif; > ?> > Result: Parse error: parse error in E:\wwwroot\1.php on line 5 > > <? > if(2>1): >        echo "ABCD"; >        if(4>3){ echo "EFGH"; } else{} > else: >        echo "123456"; > endif; > ?> > Result:ABCDEFGH > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- </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.notes (#154550) next »