CVS update: php3/doc/chapters

From: Date: Fri, 25 Dec 1998 18:48:52 +0000
Subject: CVS update: php3/doc/chapters
Groups: php.dev 
Request: Send a blank email to php-dev+get-3036@lists.php.net to get a copy of this message
Date: Friday December 25, 1998 @ 13:48 Author: eschmid Update of /repository/php3/doc/chapters In directory asf:/u/temp/cvs-serv24615 Modified Files: lang-syntax.sgml Log Message: Should pdfdoc and pdfinfo listed as a variable type? Index: php3/doc/chapters/lang-syntax.sgml diff -c php3/doc/chapters/lang-syntax.sgml:1.26 php3/doc/chapters/lang-syntax.sgml:1.27 *** php3/doc/chapters/lang-syntax.sgml:1.26 Wed Dec 9 21:07:30 1998 --- php3/doc/chapters/lang-syntax.sgml Fri Dec 25 13:48:51 1998 *************** *** 11,54 **** <para> There are three ways of escaping from HTML and entering "PHP code mode": <example> <title>Ways of escaping from HTML</title> <programlisting> 1. &lt;? echo("this is the simplest, an SGML processing instruction\n"); ?> - 2. &lt;?php echo("if you want to serve XML documents, do like this\n"); ?> - - - 3. &lt;script language="php"> ! echo("some editors (like FrontPage) don't like processing instructions"); - &lt;/script&gt; - 4. &lt;% echo("As of PHP 3.0.4 you may optionally use ASP-style tags"); %> ! ! </programlisting> </example> <sect1 id="syntax-instrsep"> <title>Instruction separation</title> <simpara> ! Instructions are separated the same as in C or perl - terminate each statement ! with a semicolon. <para> The closing tag (?&gt;) also implies the end of the statement, so the following are equivalent: ! <informalexample><programlisting> ! <?php ! echo "This is a test; ?> - <?php echo "This is a test" ?> - </programlisting></informalexample> <sect1 id="variable-types"> <title>Variable types</title> <para> PHP supports the following types: --- 11,59 ---- <para> There are three ways of escaping from HTML and entering "PHP code mode": + <example> <title>Ways of escaping from HTML</title> <programlisting> 1. &lt;? echo("this is the simplest, an SGML processing instruction\n"); ?> 2. &lt;?php echo("if you want to serve XML documents, do like this\n"); ?> ! 3. &lt;script language="php"> ! echo ("some editors (like FrontPage) don't ! like processing instructions"); ! &lt;/script>; 4. &lt;% echo("As of PHP 3.0.4 you may optionally use ASP-style tags"); %> ! </programlisting> </example> + <sect1 id="syntax-instrsep"> <title>Instruction separation</title> + <simpara> ! Instructions are separated the same as in C or perl - terminate ! each statement with a semicolon. ! <para> The closing tag (?&gt;) also implies the end of the statement, so the following are equivalent: ! ! <informalexample> ! <programlisting> ! <&lt;php ! echo "This is a test"; ?> + + <&lt;php echo "This is a test" ?> + </programlisting> + </informalexample> <sect1 id="variable-types"> <title>Variable types</title> + <para> PHP supports the following types: *************** *** 58,63 **** --- 63,70 ---- <listitem><simpara>string <listitem><simpara>array <listitem><simpara>object + <listitem><simpara>pdfdoc (only if enabled PDF support) + <listitem><simpara>pdfinfo (only if enabled PDF support) </itemizedlist> <simpara> -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3036) next »