yohgaki Fri Apr 26 09:03:13 2002 EDT
Modified files:
/phpdoc/en/language basic-syntax.xml
Log:
Use of <?php should be the 1st one.
# I read the comment, but I just cannot stand for it :)
Index: phpdoc/en/language/basic-syntax.xml
diff -u phpdoc/en/language/basic-syntax.xml:1.27
phpdoc/en/language/basic-syntax.xml:1.28
--- phpdoc/en/language/basic-syntax.xml:1.27 Thu Mar 28 12:16:45 2002
+++ phpdoc/en/language/basic-syntax.xml Fri Apr 26 09:03:12 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.27 $ -->
+<!-- $Revision: 1.28 $ -->
<chapter id="language.basic-syntax">
<title>Basic syntax</title>
@@ -81,11 +81,11 @@
<title>Ways of escaping from HTML</title>
<programlisting role="php">
<![CDATA[
-1. <? echo ("this is the simplest, an SGML processing instruction\n"); ?>
+1. <?php echo("if you want to serve XHTML or XML documents, do like this\n"); ?>
+
+2. <? echo ("this is the simplest, an SGML processing instruction\n"); ?>
<?= expression ?> This is a shortcut for "<? echo expression ?>"
-2. <?php echo("if you want to serve XHTML or XML documents, do like this\n"); ?>
-
3. <script language="php">
echo ("some editors (like FrontPage) don't
like processing instructions");
@@ -99,18 +99,18 @@
</para>
<para>
- The first way is only available if short tags have been
+ The first way is the generally preferred method, as it
+ allows for the the use of PHP in XML-conformant code such as
+ XHTML.
+ </para>
+
+ <para>
+ The second way is only available if short tags have been
enabled. This can be done via the <function>short_tags</function>
function (PHP 3 only), by enabling the <link
linkend="ini.short-open-tag">short_open_tag</link> configuration
setting in the PHP config file, or by compiling PHP with the
--enable-short-tags option to <command>configure</command>.
- </para>
-
- <para>
- Again, the second way is the generally preferred method, as it
- allows for the the use of PHP in XML-conformant code such as
- XHTML.
</para>
<para>