derek           Thu Jan 20 03:53:05 2005 EDT

  Modified files:              
    /phpdoc/en/language basic-syntax.xml 
  Log:
  Cleaning up the code as well. Getting rid of the parenthesis
  on echo, and touching up the quotation usage.
  
  
http://cvs.php.net/diff.php/phpdoc/en/language/basic-syntax.xml?r1=1.40&r2=1.41&ty=u
Index: phpdoc/en/language/basic-syntax.xml
diff -u phpdoc/en/language/basic-syntax.xml:1.40 
phpdoc/en/language/basic-syntax.xml:1.41
--- phpdoc/en/language/basic-syntax.xml:1.40    Thu Jan 20 03:42:54 2005
+++ phpdoc/en/language/basic-syntax.xml Thu Jan 20 03:53:04 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.40 $ -->
+<!-- $Revision: 1.41 $ -->
  <chapter id="language.basic-syntax">
   <title>Basic syntax</title>
   <sect1 id="language.basic-syntax.phpmode">
@@ -72,17 +72,17 @@
      <title>PHP Opening and Closing Tags</title>
      <programlisting role="php">
 <![CDATA[
-1.  <?php echo("if you want to serve XHTML or XML documents, do like this\n"); 
?>
+1.  <?php echo 'if you want to serve XHTML or XML documents, do like this'; ?>
 
-2.  <? echo ("this is the simplest, an SGML processing instruction\n"); ?>
-    <?= expression ?> This is a shortcut for "<? echo expression ?>"
-    
-3.  <script language="php">
-        echo ("some editors (like FrontPage) don't
-              like processing instructions");
+2.  <script language="php">
+        echo 'some editors (like FrontPage) don\'t
+              like processing instructions';
     </script>
 
-4.  <% echo ("You may optionally use ASP-style tags"); %>
+3.  <? echo 'this is the simplest, an SGML processing instruction'; ?>
+    <?= expression ?> This is a shortcut for "<? echo expression ?>"
+
+4.  <% echo 'You may optionally use ASP-style tags'; %>
     <%= $variable; # This is a shortcut for "<% echo . . ." %>
 ]]>
      </programlisting>
@@ -141,10 +141,10 @@
      <programlisting role="php">
 <![CDATA[
 <?php
-    echo "This is a test";
+    echo 'This is a test';
 ?>
 
-<?php echo "This is a test" ?>
+<?php echo 'This is a test' ?>
 ]]>
      </programlisting>
     </informalexample>
@@ -166,11 +166,11 @@
      <programlisting role="php">
 <![CDATA[
 <?php
-    echo "This is a test"; // This is a one-line c++ style comment
+    echo 'This is a test'; // This is a one-line c++ style comment
     /* This is a multi line comment
        yet another line of comment */
-    echo "This is yet another test";
-    echo "One Final Test"; # This is shell-style style comment
+    echo 'This is yet another test';
+    echo 'One Final Test'; # This is shell-style style comment
 ?>
 ]]>
      </programlisting>
@@ -189,7 +189,7 @@
     <informalexample>
      <programlisting role="php">
 <![CDATA[
-<h1>This is an <?php # echo "simple";?> example.</h1>
+<h1>This is an <?php # echo 'simple';?> example.</h1>
 <p>The header above will say 'This is an example'.
 ]]>
      </programlisting>
@@ -206,7 +206,7 @@
 <![CDATA[
 <?php
  /* 
-    echo "This is a test"; /* This comment will cause a problem */
+    echo 'This is a test'; /* This comment will cause a problem */
  */
 ?>
 ]]>

Reply via email to