[PHP-DOC] cvs: phpdoc /en/language basic-syntax.xml From: Ron Chmara (ron <email protected>)
Date: 12/12/00

ronabop Tue Dec 12 20:59:39 2000 EDT

  Modified files:
    /phpdoc/en/language basic-syntax.xml
  Log:
  Updating per XHTML/XML discussions on php-dev
  
Index: phpdoc/en/language/basic-syntax.xml
diff -u phpdoc/en/language/basic-syntax.xml:1.3 phpdoc/en/language/basic-syntax.xml:1.4
--- phpdoc/en/language/basic-syntax.xml:1.3 Wed Nov 1 15:33:42 2000
+++ phpdoc/en/language/basic-syntax.xml Tue Dec 12 20:59:39 2000
@@ -14,7 +14,7 @@
       <programlisting>
 1. &lt;? echo ("this is the simplest, an SGML processing instruction\n"); ?&gt;
  
-2. &lt;?php echo("if you want to serve XML documents, do like this\n"); ?&gt;
+2. &lt;?php echo("if you want to serve XHTML or XML documents, do like this\n"); ?&gt;
 
 3. &lt;script language="php"&gt;
         echo ("some editors (like FrontPage) don't
@@ -37,6 +37,11 @@
     </para>
 
     <para>
+ The second way is the generally preferred method, as it allows for the
+ next generation of XHTML to be easily implemented with PHP.
+ </para>
+
+ <para>
      The fourth way is only available if ASP-style tags have been
      enabled using the <link linkend="ini.asp-tags">asp_tags</link>
      configuration setting.
@@ -92,7 +97,7 @@
      end of the line or the current block of PHP code, whichever
      comes first.</simpara>
     <informalexample><programlisting>
-&lt;h1>This is an &lt;?# echo "simple";?> example.&lt;/h1>
+&lt;h1>This is an &lt;?php # echo "simple";?> example.&lt;/h1>
 &lt;p>The header above will say 'This is an example'.
 </programlisting></informalexample>