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

From: Date: Thu, 15 Mar 2012 11:30:55 +0000
Subject: Re: svn: /phpdoc/en/trunk/language/ basic-syntax.xml
References: 1 2 3  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9894@lists.php.net to get a copy of this message
On 15 March 2012 10:43, Drak <drak@php.net> wrote: > What in particular wasnt right (apart from the missing title)? I dont see > it at first glance and need to know for future. See comments inline, below. On 14 March 2012 18:49, Karma Dordrak <drak@php.net> wrote: > drak Wed, 14 Mar 2012 18:49:47 +0000 > > Revision: > http://svn.php.net/viewvc?view=revision&revision=324248 > > + This works as expected, because when PHP hits the ?&gt; closing > + tags, it simply starts outputting whatever it finds (except for an > + immediately following newline - see > + <link > linkend="language.basic-syntax.instruction-separation">instruction > separation</link> > + ) until it hits another opening tag unless PHP is in the middle of a > conditional statement. See the > + next example. > 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. > +<?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. > + within a condition what is not met. > + </para> > + <para> > These para tags should be properly indented (take away one space). + 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.

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