cvs: phpdoc-zh /language basic-syntax.xml
| From: | Verdana Musone | Date: | Thu, 05 Sep 2002 08:29:16 +0000 |
| Subject: | cvs: phpdoc-zh /language basic-syntax.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-460@lists.php.net to get a copy of this message | ||
verdana Thu Sep 5 04:29:16 2002 EDT
Modified files:
/phpdoc-zh/language basic-syntax.xml
Log:
complete translation
Index: phpdoc-zh/language/basic-syntax.xml diff -u phpdoc-zh/language/basic-syntax.xml:1.2 phpdoc-zh/language/basic-syntax.xml:1.3 --- phpdoc-zh/language/basic-syntax.xml:1.2 Wed Aug 28 01:55:28 2002 +++ phpdoc-zh/language/basic-syntax.xml Thu Sep 5 04:29:15 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author --> <!-- EN-Revision: 1.33 Maintainer: verdana Status:partly --> <chapter id="language.basic-syntax"> @@ -49,38 +49,30 @@ --> <sect1 id="language.basic-syntax.phpmode"> - <title>Escaping from HTML</title> + <title>´Ó HTML ÖзÖÀë</title> <para> - When PHP parses a file, it simply passes the text of the file - through until it encounters one of the special tags which tell it - to start interpreting the text as PHP code. The parser then - executes all the code it finds, up until it runs into a PHP - closing tag, which tells the parser to just start passing the text - through again. This is the mechanism which allows you to embed PHP - code inside HTML: everything outside the PHP tags is left utterly - alone, while everything inside is parsed as code. + PHP µÄ½Å±¾ÓÉÎļþÖÐÒ»¶ÔÌØÊâµÄ±ê¼ÇËùÒýÆðµÄÄÚÈÝ£¬µ±½âÊÍÆ÷·ÖÎöÒ»¸öÎļþʱ£¬ËùÓÐÌØÊâ±ê¼Ç + ÍâµÄÆÕͨÎļþ£¬½âÊÍÆ÷²»¶ÔÆä×öÈκδ¦Àí£¬¶øÌØÊâ±ê¼ÇÄÚÎļþ½«×÷Ϊ PHP ´úÂë±»½âÊÍÆ÷·ÖÎö + Ö´ÐС£¸ÃÔËÐлúÖÆ½«ÔÊÐíÄúÔÚ HTML ÖÐǶÈë PHP ´úÂ룺PHP ±ê¼ÇÍâµÄÄÚÈݽ«±»ÍêÈ«¶ÀÁ¢¿ª£¬ + ²»×öÈκδ¦Àí£¬¶øÄÚ²¿µÄ½«×÷Ϊ PHP ´úÂë½âÎö¡£ </para> <para> - There are four sets of tags which can be used to denote blocks of - PHP code. Of these, only two (<?php. . .?> and <script - language="php">. . .</script>) are always available; the - others can be turned on or off from the - &php.ini; configuration file. While the - short-form tags and ASP-style tags may be convenient, they are not - as portable as the longer versions. Also, if you intend to embed - PHP code in XML or XHTML, you will need to use the - <?php. . .?> form to conform to the XML. + ÓÃÀ´±ê¼Ç PHP ´úÂë¿éµÄ±ê¼Ç¹²ÓÐËÄÌ×£¬ÆäÖÐÖ»ÓÐÁ½Ì××ÜÊÇÓÐЧ£¨<?php. . .?> ºÍ <script + language="php">. . .</script>£©£»ÁíÍâÁ½Ì׿ÉÒÔÔÚ &php.ini; ÅäÖÃÎļþÖÐ + ¿ªÆô»òÕ߹رա£ËäÈ»¶Ì¸ñʽµÄ±ê¼ÇºÍ ASP ·ç¸ñµÄ±ê¼Ç¿ÉÄܱȽÏÊ¡Á¦£¬µ«ÊÇijЩÇé¿öÏÂÄú¿ÉÄÜ + ±ØÐëҪʹÓó¤¸ñʽµÄ±ê¼Ç¡£±ÈÈ磬Äú´òËãÔÚ XML »òÕß XHTML ÖÐǶÈë PHP ´úÂ룬Äú½«ÐèÒª + ʹÓà <?php. . .?> ÐÎʽµÄ±ê¼ÇÒÔÊÊÓ¦ XML µÄ±ê×¼¡£ </para> <para> - The tags supported by PHP are: + PHP Ö§³ÖµÄ±ê¼ÇΪ£º </para> <para> <example> - <title>Ways of escaping from HTML</title> + <title>´Ó HTML ÖзÖÀëµÄ·½Ê½</title> <programlisting role="php"> <![CDATA[ 1. <?php echo("if you want to serve XHTML or XML documents, do like this\n"); ?> @@ -101,51 +93,42 @@ </para> <para> - The first way, <?php. . .?>, is the preferred method, as it - allows the use of PHP in XML-conformant code such as XHTML. + ÓÅÏÈÑ¡Óõķ½Ê½ÎªµÚÒ»ÖÖ·½Ê½ <?php. . .?>£¬ÒòΪËüÔÊÐíÄúÔÚ XML ½á¹¹£¬ + Èç XHTML µÄ´úÂëÖÐʹÓà PHP¡£ </para> <para> - The second way is not available always. Short tags are available - only when they 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>. Even if it is enabled by default in - php.ini-dist, use of short tags are discouraged. + µÚ¶þÖÖ·½Ê½²¢·Ç×ÜÊÇ¿ÉÓõġ£Ö»Óе±ÄúÔÚ &php.ini; ÅäÖÃÎļþÖ줻î + <link linkend="ini.short-open-tag">short_open_tag</link> Ñ¡Ï²ÅÊÇ¿ÉÓõġ£ + ÄúÒ²¿ÉÒÔͨ¹ýʹÓà <function>short_tags</function> º¯Êý£¨½öÓÃÓÚ PHP 3£©£¬»òÕß + ʹÓà --enable-short-tags Ñ¡Ïî <command>configure</command> PHP À´¼¤»î¶Ì¸ñʽ±ê¼Ç¡£ + ÔÚ php.ini-dist ÅäÖÃÎļþÖУ¬Ä¬ÈÏÊÇ¿ªÆô¶Ì¸ñʽ±ê¼ÇµÄ£¬µ«Êǽ¨ÒéÄú²»ÒªÊ¹Óøñê¼Ç¡£ </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. - + ÔÚ PHP ÅäÖÃÎļþÖпªÆôÑ¡Ïî <link linkend="ini.asp-tags">asp_tags</link> ½«¼¤»î + µÚËÄÖÖ·½Ê½¡£ <note> - <para>Support for ASP-style tags was added in 3.0.4.</para> + <para>ASP ·ç¸ñµÄ±ê¼ÇÌí¼ÓÓÚ PHP 3.0.4</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. + µ±¿ª·¢´óÐÍÓ¦ÓóÌÐò»òÕßÓÃÓÚ·Ö·¢µÄº¯Êý¿â£¬»òÕßÔÚ²»ÊÜÄú¿ØÖÆµÄ PHP ·þÎñÆ÷ÉÏÃæ¿ª·¢ + ³ÌÐòʱ£¬Ç벻ҪʹÓö̸ñʽµÄ±ê¼Ç£¬ÒòΪĿ±ê·þÎñÆ÷¿ÉÄܲ¢²»Ö§³Ö¶Ì¸ñʽµÄ±ê¼Ç¡£ÎªÁË + ±ãÓÚÒÆÖ²£¬Çë±£Ö¤ÓÃÓÚÔÙ·Ö·¢µÄ´úÂëÖв»Ê¹Óö̸ñʽµÄ±ê¼Ç¡£ </para> </note> <para> - The closing tag for the block will include the immediately - trailing newline if one is present. Also, the closing tag - automatically implies a semicolon; you do not need to have a - semicolon terminating the last line of a PHP block. + PHP ´úÂë¿é½áÊø±ê¼Ç½±×Ô¶¯°üº¬×î½üµÄÒ»¸ö½áβµÄÐÂÐУ¨Èç¹û´æÔڵϰ£©¡£¶øÇÒ£¬ + ½áÊø±ê¼Ç×Ô¶¯Òþº¬Ò»¸ö·ÖºÅ; Äú²»ÐèҪΪ PHP ´úÂë¿éµÄ×îºóÐÐ×·¼ÓÒ»¸ö·ÖºÅ¡£ </para> <para> - PHP allows you to use structures like this: - <example><title>Advanced escaping</title> + PHP ÔÊÐíÄúʹÓÃÈçϵĽṹ£º + <example><title>¸ü¸ß¼¶µÄÍÑÀë</title> <programlisting role="php"> <![CDATA[ <?php @@ -162,26 +145,19 @@ ]]> </programlisting> </example> - This works as expected, because when PHP hits the ?> closing - tags, it simply starts outputting whatever it finds until it hits - another opening tag. The example given here is contrived, of - course, but for outputting large blocks of text, dropping out of - PHP parsing mode is generally more efficient than sending all of - the text through <function>echo</function> or - <function>print</function> or somesuch. + PHP ½«Ö±½ÓÊä³ö½áÊø±ê¼ÇºÍÏÂÒ»¸ö¿ªÊ¼±ê¼ÇÖеÄÈÎºÎ·Ç PHP ´úÂë¡£µ±ÐèÒªÊä³ö´óÁ¿µÄÎı¾Ê±£¬ + Í˳ö PHP ½âÎöģʽ½«±ÈʹÓà <function>echo</function> »òÕß <function>print</function> + »òÕß´ËÀàµÄº¯Êý´òÓ¡ËùÓÐÎı¾Òª¸ü¼ÓµÄÓÐЧ¡£ </para> </sect1> <sect1 id="language.basic-syntax.instruction-separation"> - <title>Instruction separation</title> + <title>Ö¸Áî·Ö¸ô·û</title> <simpara> - Instructions are separated the same as in C or Perl - terminate - each statement with a semicolon.</simpara> - + Ö¸Áî·Ö¸ô·½Ê½Óë C »òÕß Perl ÀàËÆ -- ÿ¸öÓï¾äÓɷֺŸñ¿ª¡£</simpara> <para> - The closing tag (?>) also implies the end of the statement, so - the following are equivalent: + ½áÊø±ê¼Ç£¨?>£©Í¬ÑùÒþº¬Óï¾äµÄ½áÊø£¬Òò´ËÏÂÃæµÄ´úÂëÊǵȼ۵ģº <informalexample> <programlisting role="php"> @@ -198,10 +174,10 @@ </sect1> <sect1 id="language.basic-syntax.comments"> - <title>Comments</title> + <title>×¢ÊÍ</title> <para> - PHP supports 'C', 'C++' and Unix shell-style comments. For example: + PHP Ö§³Ö 'C'£¬'C++' ºÍ Unix Shell ·ç¸ñµÄ×¢ÊÍ¡£ÀýÈç: <informalexample> <programlisting role="php"> @@ -219,9 +195,7 @@ </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. + "µ¥ÐÐ" ×¢Êͽö½ö×¢Ê͵½ÐÐÄ©»òÕßµ±Ç°µÄ PHP ´úÂë¿é£¬ÎÞÂÛÄĸöÊ×ÏȳöÏÖ¡£ </simpara> <informalexample> <programlisting role="php"> @@ -233,8 +207,7 @@ </informalexample> <simpara> - You should be careful not to nest 'C' style comments, which can - happen when commenting out large blocks. + СÐIJ»ÒªÇ¶Ì× 'C' ·ç¸ñµÄ×¢ÊÍ£¬µ±×¢ÊÍ´óÁ¿´úÂëʱ£¬¿ÉÄÜ·¸¸Ã´íÎó¡£ </simpara> <informalexample> @@ -250,10 +223,10 @@ </informalexample> <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. + "µ¥ÐÐ" ×¢Êͽö½ö×¢Ê͵½ÐÐÄ©»òÕßµ±Ç°µÄ PHP ´úÂë¿é£¬ÎÞÂÛÄĸöÊ×ÏȳöÏÖ¡£ÕâÒâζ×Å // ?> + ºóÃæµÄ HTML ´úÂ뽫±»´òÓ¡³öÀ´£¬?> Ìø³öÁË PHP ģʽ²¢ÇÒ·µ»Ø HTML ģʽ£¬¶øÇÒ // ×¢ÊÍ + ·û²¢²»»áÓ°Ï쵽ģʽµÄת»»¡£ + </simpara> </sect1> </chapter>
Index: phpdoc-zh/language/basic-syntax.xml diff -u phpdoc-zh/language/basic-syntax.xml:1.2 phpdoc-zh/language/basic-syntax.xml:1.3 --- phpdoc-zh/language/basic-syntax.xml:1.2 Wed Aug 28 01:55:28 2002 +++ phpdoc-zh/language/basic-syntax.xml Thu Sep 5 04:29:15 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author --> <!-- EN-Revision: 1.33 Maintainer: verdana Status:partly --> <chapter id="language.basic-syntax"> @@ -49,38 +49,30 @@ --> <sect1 id="language.basic-syntax.phpmode"> - <title>Escaping from HTML</title> + <title>´Ó HTML ÖзÖÀë</title> <para> - When PHP parses a file, it simply passes the text of the file - through until it encounters one of the special tags which tell it - to start interpreting the text as PHP code. The parser then - executes all the code it finds, up until it runs into a PHP - closing tag, which tells the parser to just start passing the text - through again. This is the mechanism which allows you to embed PHP - code inside HTML: everything outside the PHP tags is left utterly - alone, while everything inside is parsed as code. + PHP µÄ½Å±¾ÓÉÎļþÖÐÒ»¶ÔÌØÊâµÄ±ê¼ÇËùÒýÆðµÄÄÚÈÝ£¬µ±½âÊÍÆ÷·ÖÎöÒ»¸öÎļþʱ£¬ËùÓÐÌØÊâ±ê¼Ç + ÍâµÄÆÕͨÎļþ£¬½âÊÍÆ÷²»¶ÔÆä×öÈκδ¦Àí£¬¶øÌØÊâ±ê¼ÇÄÚÎļþ½«×÷Ϊ PHP ´úÂë±»½âÊÍÆ÷·ÖÎö + Ö´ÐС£¸ÃÔËÐлúÖÆ½«ÔÊÐíÄúÔÚ HTML ÖÐǶÈë PHP ´úÂ룺PHP ±ê¼ÇÍâµÄÄÚÈݽ«±»ÍêÈ«¶ÀÁ¢¿ª£¬ + ²»×öÈκδ¦Àí£¬¶øÄÚ²¿µÄ½«×÷Ϊ PHP ´úÂë½âÎö¡£ </para> <para> - There are four sets of tags which can be used to denote blocks of - PHP code. Of these, only two (<?php. . .?> and <script - language="php">. . .</script>) are always available; the - others can be turned on or off from the - &php.ini; configuration file. While the - short-form tags and ASP-style tags may be convenient, they are not - as portable as the longer versions. Also, if you intend to embed - PHP code in XML or XHTML, you will need to use the - <?php. . .?> form to conform to the XML. + ÓÃÀ´±ê¼Ç PHP ´úÂë¿éµÄ±ê¼Ç¹²ÓÐËÄÌ×£¬ÆäÖÐÖ»ÓÐÁ½Ì××ÜÊÇÓÐЧ£¨<?php. . .?> ºÍ <script + language="php">. . .</script>£©£»ÁíÍâÁ½Ì׿ÉÒÔÔÚ &php.ini; ÅäÖÃÎļþÖÐ + ¿ªÆô»òÕ߹رա£ËäÈ»¶Ì¸ñʽµÄ±ê¼ÇºÍ ASP ·ç¸ñµÄ±ê¼Ç¿ÉÄܱȽÏÊ¡Á¦£¬µ«ÊÇijЩÇé¿öÏÂÄú¿ÉÄÜ + ±ØÐëҪʹÓó¤¸ñʽµÄ±ê¼Ç¡£±ÈÈ磬Äú´òËãÔÚ XML »òÕß XHTML ÖÐǶÈë PHP ´úÂ룬Äú½«ÐèÒª + ʹÓà <?php. . .?> ÐÎʽµÄ±ê¼ÇÒÔÊÊÓ¦ XML µÄ±ê×¼¡£ </para> <para> - The tags supported by PHP are: + PHP Ö§³ÖµÄ±ê¼ÇΪ£º </para> <para> <example> - <title>Ways of escaping from HTML</title> + <title>´Ó HTML ÖзÖÀëµÄ·½Ê½</title> <programlisting role="php"> <![CDATA[ 1. <?php echo("if you want to serve XHTML or XML documents, do like this\n"); ?> @@ -101,51 +93,42 @@ </para> <para> - The first way, <?php. . .?>, is the preferred method, as it - allows the use of PHP in XML-conformant code such as XHTML. + ÓÅÏÈÑ¡Óõķ½Ê½ÎªµÚÒ»ÖÖ·½Ê½ <?php. . .?>£¬ÒòΪËüÔÊÐíÄúÔÚ XML ½á¹¹£¬ + Èç XHTML µÄ´úÂëÖÐʹÓà PHP¡£ </para> <para> - The second way is not available always. Short tags are available - only when they 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>. Even if it is enabled by default in - php.ini-dist, use of short tags are discouraged. + µÚ¶þÖÖ·½Ê½²¢·Ç×ÜÊÇ¿ÉÓõġ£Ö»Óе±ÄúÔÚ &php.ini; ÅäÖÃÎļþÖ줻î + <link linkend="ini.short-open-tag">short_open_tag</link> Ñ¡Ï²ÅÊÇ¿ÉÓõġ£ + ÄúÒ²¿ÉÒÔͨ¹ýʹÓà <function>short_tags</function> º¯Êý£¨½öÓÃÓÚ PHP 3£©£¬»òÕß + ʹÓà --enable-short-tags Ñ¡Ïî <command>configure</command> PHP À´¼¤»î¶Ì¸ñʽ±ê¼Ç¡£ + ÔÚ php.ini-dist ÅäÖÃÎļþÖУ¬Ä¬ÈÏÊÇ¿ªÆô¶Ì¸ñʽ±ê¼ÇµÄ£¬µ«Êǽ¨ÒéÄú²»ÒªÊ¹Óøñê¼Ç¡£ </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. - + ÔÚ PHP ÅäÖÃÎļþÖпªÆôÑ¡Ïî <link linkend="ini.asp-tags">asp_tags</link> ½«¼¤»î + µÚËÄÖÖ·½Ê½¡£ <note> - <para>Support for ASP-style tags was added in 3.0.4.</para> + <para>ASP ·ç¸ñµÄ±ê¼ÇÌí¼ÓÓÚ PHP 3.0.4</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. + µ±¿ª·¢´óÐÍÓ¦ÓóÌÐò»òÕßÓÃÓÚ·Ö·¢µÄº¯Êý¿â£¬»òÕßÔÚ²»ÊÜÄú¿ØÖÆµÄ PHP ·þÎñÆ÷ÉÏÃæ¿ª·¢ + ³ÌÐòʱ£¬Ç벻ҪʹÓö̸ñʽµÄ±ê¼Ç£¬ÒòΪĿ±ê·þÎñÆ÷¿ÉÄܲ¢²»Ö§³Ö¶Ì¸ñʽµÄ±ê¼Ç¡£ÎªÁË + ±ãÓÚÒÆÖ²£¬Çë±£Ö¤ÓÃÓÚÔÙ·Ö·¢µÄ´úÂëÖв»Ê¹Óö̸ñʽµÄ±ê¼Ç¡£ </para> </note> <para> - The closing tag for the block will include the immediately - trailing newline if one is present. Also, the closing tag - automatically implies a semicolon; you do not need to have a - semicolon terminating the last line of a PHP block. + PHP ´úÂë¿é½áÊø±ê¼Ç½±×Ô¶¯°üº¬×î½üµÄÒ»¸ö½áβµÄÐÂÐУ¨Èç¹û´æÔڵϰ£©¡£¶øÇÒ£¬ + ½áÊø±ê¼Ç×Ô¶¯Òþº¬Ò»¸ö·ÖºÅ; Äú²»ÐèҪΪ PHP ´úÂë¿éµÄ×îºóÐÐ×·¼ÓÒ»¸ö·ÖºÅ¡£ </para> <para> - PHP allows you to use structures like this: - <example><title>Advanced escaping</title> + PHP ÔÊÐíÄúʹÓÃÈçϵĽṹ£º + <example><title>¸ü¸ß¼¶µÄÍÑÀë</title> <programlisting role="php"> <![CDATA[ <?php @@ -162,26 +145,19 @@ ]]> </programlisting> </example> - This works as expected, because when PHP hits the ?> closing - tags, it simply starts outputting whatever it finds until it hits - another opening tag. The example given here is contrived, of - course, but for outputting large blocks of text, dropping out of - PHP parsing mode is generally more efficient than sending all of - the text through <function>echo</function> or - <function>print</function> or somesuch. + PHP ½«Ö±½ÓÊä³ö½áÊø±ê¼ÇºÍÏÂÒ»¸ö¿ªÊ¼±ê¼ÇÖеÄÈÎºÎ·Ç PHP ´úÂë¡£µ±ÐèÒªÊä³ö´óÁ¿µÄÎı¾Ê±£¬ + Í˳ö PHP ½âÎöģʽ½«±ÈʹÓà <function>echo</function> »òÕß <function>print</function> + »òÕß´ËÀàµÄº¯Êý´òÓ¡ËùÓÐÎı¾Òª¸ü¼ÓµÄÓÐЧ¡£ </para> </sect1> <sect1 id="language.basic-syntax.instruction-separation"> - <title>Instruction separation</title> + <title>Ö¸Áî·Ö¸ô·û</title> <simpara> - Instructions are separated the same as in C or Perl - terminate - each statement with a semicolon.</simpara> - + Ö¸Áî·Ö¸ô·½Ê½Óë C »òÕß Perl ÀàËÆ -- ÿ¸öÓï¾äÓɷֺŸñ¿ª¡£</simpara> <para> - The closing tag (?>) also implies the end of the statement, so - the following are equivalent: + ½áÊø±ê¼Ç£¨?>£©Í¬ÑùÒþº¬Óï¾äµÄ½áÊø£¬Òò´ËÏÂÃæµÄ´úÂëÊǵȼ۵ģº <informalexample> <programlisting role="php"> @@ -198,10 +174,10 @@ </sect1> <sect1 id="language.basic-syntax.comments"> - <title>Comments</title> + <title>×¢ÊÍ</title> <para> - PHP supports 'C', 'C++' and Unix shell-style comments. For example: + PHP Ö§³Ö 'C'£¬'C++' ºÍ Unix Shell ·ç¸ñµÄ×¢ÊÍ¡£ÀýÈç: <informalexample> <programlisting role="php"> @@ -219,9 +195,7 @@ </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. + "µ¥ÐÐ" ×¢Êͽö½ö×¢Ê͵½ÐÐÄ©»òÕßµ±Ç°µÄ PHP ´úÂë¿é£¬ÎÞÂÛÄĸöÊ×ÏȳöÏÖ¡£ </simpara> <informalexample> <programlisting role="php"> @@ -233,8 +207,7 @@ </informalexample> <simpara> - You should be careful not to nest 'C' style comments, which can - happen when commenting out large blocks. + СÐIJ»ÒªÇ¶Ì× 'C' ·ç¸ñµÄ×¢ÊÍ£¬µ±×¢ÊÍ´óÁ¿´úÂëʱ£¬¿ÉÄÜ·¸¸Ã´íÎó¡£ </simpara> <informalexample> @@ -250,10 +223,10 @@ </informalexample> <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. + "µ¥ÐÐ" ×¢Êͽö½ö×¢Ê͵½ÐÐÄ©»òÕßµ±Ç°µÄ PHP ´úÂë¿é£¬ÎÞÂÛÄĸöÊ×ÏȳöÏÖ¡£ÕâÒâζ×Å // ?> + ºóÃæµÄ HTML ´úÂ뽫±»´òÓ¡³öÀ´£¬?> Ìø³öÁË PHP ģʽ²¢ÇÒ·µ»Ø HTML ģʽ£¬¶øÇÒ // ×¢ÊÍ + ·û²¢²»»áÓ°Ï쵽ģʽµÄת»»¡£ + </simpara> </sect1> </chapter>