Re: svn: /phpdoc/en/trunk/language/ basic-syntax.xml

From: Date: Thu, 15 Mar 2012 11:39:09 +0000
Subject: Re: svn: /phpdoc/en/trunk/language/ basic-syntax.xml
References: 1 2 3 4  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9896@lists.php.net to get a copy of this message
On 15 March 2012 17:15, Peter Cowburn <petercowburn@gmail.com> wrote: > > This reads as... When PHP hits the ?> closing tags, it outputs whatever it > finds until it hits another opening tag unless PHP is in the middle of a > conditional statement. The "unless..." part does not make sense. > I've clarified that a bit now. > > >> +<?php if( $expression == true ): ?> >> + This will show if the expression is true. >> +<?php else: ?> >> + Otherwise this will show. >> +<?php endif; ?> >> > > PEAR coding standards don't allow the spacing used here. Use if > ($expression == true) instead > Sorry about that, I knew that :-) Just missed it. > + within a condition what is not met. >> + </para> >> + <para> >> > > These para tags should be properly indented (take away one space). > Fixed. > + The example given here is contrived, of course, but for outputting >> large >> + blocks of text, dropping out of PHP parsing mode is generally more >> efficient >> + than sending all of the text through <function>echo</function> or >> > > "The example given here is contrived, of course..." is not something that > belongs in the manual. > > Hope that helps. > Fixed. Thanks for the feedback! Regards, Drak

« previous php.doc.cvs (#9896) next »