derick Fri Jun 13 07:05:31 2003 EDT Modified files: /phpdoc/en/language basic-syntax.xml Log: - More layout things Index: phpdoc/en/language/basic-syntax.xml diff -u phpdoc/en/language/basic-syntax.xml:1.33 phpdoc/en/language/basic-syntax.xml:1.34 --- phpdoc/en/language/basic-syntax.xml:1.33 Wed May 8 13:46:38 2002 +++ phpdoc/en/language/basic-syntax.xml Fri Jun 13 07:05:30 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.33 $ --> +<!-- $Revision: 1.34 $ --> <chapter id="language.basic-syntax"> <title>Basic syntax</title> @@ -124,15 +124,17 @@ </note> </para> - <note> - <para> - Using short tags should be avoided when developing applications - or libraries that are meant for redistribution, or deployment on - PHP servers which are not under your control, because short tags - may not be supported on the target server. For portable, - redistributable code, be sure not to use short tags. - </para> - </note> + <para> + <note> + <para> + Using short tags should be avoided when developing applications + or libraries that are meant for redistribution, or deployment on + PHP servers which are not under your control, because short tags + may not be supported on the target server. For portable, + redistributable code, be sure not to use short tags. + </para> + </note> + </para> <para> The closing tag for the block will include the immediately @@ -141,7 +143,7 @@ semicolon terminating the last line of a PHP block. </para> - <para> + <para> PHP allows you to use structures like this: <example><title>Advanced escaping</title> <programlisting role="php"> @@ -175,7 +177,8 @@ <simpara> Instructions are separated the same as in C or Perl - terminate - each statement with a semicolon.</simpara> + each statement with a semicolon. + </simpara> <para> The closing tag (?>) also implies the end of the statement, so @@ -221,22 +224,25 @@ the line or the current block of PHP code, whichever comes first. </simpara> - <informalexample> - <programlisting role="php"> + <para> + <informalexample> + <programlisting role="php"> <![CDATA[ <h1>This is an <?php # echo "simple";?> example.</h1> <p>The header above will say 'This is an example'. ]]> - </programlisting> - </informalexample> + </programlisting> + </informalexample> + </para> <simpara> You should be careful not to nest 'C' style comments, which can happen when commenting out large blocks. </simpara> - <informalexample> - <programlisting role="php"> + <para> + <informalexample> + <programlisting role="php"> <![CDATA[ <?php /* @@ -244,14 +250,16 @@ */ ?> ]]> - </programlisting> - </informalexample> + </programlisting> + </informalexample> + </para> <simpara> The one-line comment styles actually only comment to the end of the line or the current block of PHP code, whichever comes first. - This means that HTML code after // ?> WILL be printed: ?> skips out of - the PHP mode and returns to HTML mode, and // cannot influence that. + This means that HTML code after <literal>// ?></literal> WILL be printed: + ?> skips out of the PHP mode and returns to HTML mode, and + <literal>//</literal> cannot influence that. </simpara> </sect1> </chapter>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php