cvs: phpdoc-zh /reference/strings/functions addcslashes.xml addslashes.xml bin2hex.xml chop.xml chr.xml chunk-split.xml convert-cyr-string.xml
count-chars.xml crc32.xml explode.xml

From: Date: Tue, 07 Feb 2006 03:39:00 +0000
Subject: cvs: phpdoc-zh /reference/strings/functions addcslashes.xml addslashes.xml bin2hex.xml chop.xml chr.xml chunk-split.xml convert-cyr-string.xml
count-chars.xml crc32.xml explode.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2776@lists.php.net to get a copy of this message
dallas Tue Feb 7 03:39:00 2006 UTC Modified files: /phpdoc-zh/reference/strings/functions addcslashes.xml addslashes.xml bin2hex.xml chop.xml chr.xml chunk-split.xml convert-cyr-string.xml count-chars.xml crc32.xml explode.xml Log: Updated.

http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/addcslashes.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/strings/functions/addcslashes.xml diff -u phpdoc-zh/reference/strings/functions/addcslashes.xml:1.1 phpdoc-zh/reference/strings/functions/addcslashes.xml:1.2 --- phpdoc-zh/reference/strings/functions/addcslashes.xml:1.1 Tue Apr 20 12:28:38 2004 +++ phpdoc-zh/reference/strings/functions/addcslashes.xml Tue Feb 7 03:39:00 2006 @@ -1,54 +1,53 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.5 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> - <refentry id="function.addcslashes"> - <refnamediv> - <refname>addcslashes</refname> - <refpurpose>Ïñ C ÄÇÑùʹÓ÷´Ð±ÏßתÒå×Ö·û´®ÖеÄ×Ö·û</refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> - <type>string</type><methodname>addcslashes</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - <methodparam><type>string</type><parameter>charlist</parameter></methodparam> - </methodsynopsis> - <para> - ·µ»Ø×Ö·û´®£¬¸Ã×Ö·û´®ÔÚÊôÓÚ²ÎÊý <parameter>charlist</parameter> - ÁбíÖеÄ×Ö·ûǰ¶¼¼ÓÉÏÁË·´Ð±Ïß¡£´Ëº¯Êý¶Ô - <literal>\n</literal>¡¢<literal>\r</literal> - µÈ½øÐÐתÒå¡£Ïñ C ÄÇÑù£¬ASCII ÂëµÍÓÚ 32 ÒÔ¼°¸ßÓÚ 126 - µÄ×Ö·û¾ùת»»³ÉʹÓð˽øÖƱíʾ¡£ - </para> - <para> - µ±ÄãÑ¡Ôñ¶Ô×Ö·û 0¡¢a¡¢b¡¢f¡¢n¡¢r¡¢t - ºÍ v ½øÐÐתÒåʱÐèҪСÐÄ£¬ËüÃǽ«±»×ª»»³É - \0¡¢\a¡¢\b¡¢\f¡¢\n¡¢\r¡¢\t ºÍ - \v¡£ÔÚ PHP ÖУ¬Ö»ÓÐ \0£¨&null;£©¡¢\r£¨»Ø³µ·û£©¡¢\n£¨»»Ðзû£©ºÍ - \t£¨·Ö¸ô·û£©ÊÇÔ¤¶¨ÒåµÄתÒåÐòÁУ¬ ¶øÔÚ - C ÖУ¬ÉÏÊöµÄËùÓÐת»»ºóµÄ×Ö·û¶¼ÊÇÔ¤¶¨ÒåµÄתÒåÐòÁС£ - </para> - <para> - <parameter>charlist</parameter> ²ÎÊý£¬Èç¡°\0..\37¡±£¬½«×ªÒåËùÓÐ - ASCII Âë½éÓÚ 0 ºÍ 37 Ö®¼äµÄ×Ö·û¡£ - <example> - <title><function>addcslashes</function> ʾÀý</title> - <programlisting role="php"> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.8 Maintainer: nio Status: ready --> +<refentry id="function.addcslashes"> + <refnamediv> + <refname>addcslashes</refname> + <refpurpose>ÒÔ C ÓïÑÔ·ç¸ñʹÓ÷´Ð±ÏßתÒå×Ö·û´®ÖеÄ×Ö·û</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>addcslashes</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + <methodparam><type>string</type><parameter>charlist</parameter></methodparam> + </methodsynopsis> + <para> + ·µ»Ø×Ö·û´®£¬¸Ã×Ö·û´®ÔÚÊôÓÚ²ÎÊý <parameter>charlist</parameter> + ÁбíÖеÄ×Ö·ûǰ¶¼¼ÓÉÏÁË·´Ð±Ïß¡£Èç¹û <parameter>charlist</parameter> + Öаüº¬ÓÐ <literal>\n</literal>£¬<literal>\r</literal> + µÈ×Ö·û£¬½«ÒÔ C ÓïÑÔ·ç¸ñת»»£¬¶øÆäËü·Ç×ÖĸÊý×ÖÇÒ ASCII ÂëµÍÓÚ 32 ÒÔ¼°¸ßÓÚ 126 + µÄ×Ö·û¾ùת»»³ÉʹÓð˽øÖƱíʾ¡£ + </para> + <para> + µ±Ñ¡Ôñ¶Ô×Ö·û 0£¬a£¬b£¬f£¬n£¬r£¬t + ºÍ v ½øÐÐתÒåʱÐèҪСÐÄ£¬ËüÃǽ«±»×ª»»³É + \0£¬\a£¬\b£¬\f£¬\n£¬\r£¬\t ºÍ + \v¡£ÔÚ PHP ÖУ¬Ö»ÓÐ \0£¨NULL£©£¬\r£¨»Ø³µ·û£©£¬\n£¨»»Ðзû£©ºÍ + \t£¨ÖƱí·û£©ÊÇÔ¤¶¨ÒåµÄתÒåÐòÁУ¬ ¶øÔÚ + C ÓïÑÔÖУ¬ÉÏÊöµÄËùÓÐת»»ºóµÄ×Ö·û¶¼ÊÇÔ¤¶¨ÒåµÄתÒåÐòÁС£ + </para> + <para> + <parameter>charlist</parameter> ²ÎÊý£¬Èç¡°\0..\37¡±£¬½«×ªÒåËùÓÐ + ASCII Âë½éÓÚ 0 ºÍ 31 Ö®¼äµÄ×Ö·û¡£ + <example> + <title><function>addcslashes</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $escaped = addcslashes($not_escaped, "\0..\37!@\177..\377"); ?> ]]> - </programlisting> - </example> - </para> - <para> - µ±¶¨Òå charlist - ²ÎÊýÖеÄ×Ö·ûÐòÁÐʱ£¬ÄãÐèҪȷʵ֪µÀ½éÓÚÄã×Ô¼ºÉèÖõĿªÊ¼¼°½áÊø·¶Î§Ö®ÄڵͼÊÇЩʲô×Ö·û¡£ - <informalexample> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + µ±¶¨Òå charlist + ²ÎÊýÖеÄ×Ö·ûÐòÁÐʱ£¬ÐèҪȷʵ֪µÀ½éÓÚ×Ô¼ºÉèÖõĿªÊ¼¼°½áÊø·¶Î§Ö®ÄڵͼÊÇЩʲô×Ö·û¡£ + <informalexample> + <programlisting role="php"> <![CDATA[ <?php echo addcslashes('foo[ ]', 'A..z'); @@ -57,29 +56,29 @@ // ... µ« [\]^_` ÒÔ¼°·Ö¸ô·û¡¢»»Ðзû¡¢»Ø³µ·ûµÈÒ²Ò»²¢±»×ªÒåÁË¡£ ?> ]]> - </programlisting> - </informalexample> - ÁíÍ⣬Èç¹ûÉèÖ÷¶Î§ÖеĽáÊø×Ö·û ASCII - Âë¸ßÓÚ¿ªÊ¼×Ö·û£¬Ôò²»»á´´½¨·¶Î§£¬Ö»Êǽ«¿ªÊ¼×Ö·û¡¢½áÊø×Ö·ûÒÔ¼°Æä¼äµÄ×Ö·ûÖð¸öתÒå¡£¿ÉʹÓà - <function>ord</function> º¯Êý»ñÈ¡×Ö·ûµÄ ASCII ÂëÖµ¡£ - <informalexample> - <programlisting role="php"> + </programlisting> + </informalexample> + ÁíÍ⣬Èç¹ûÉèÖ÷¶Î§ÖеĽáÊø×Ö·û ASCII + Âë¸ßÓÚ¿ªÊ¼×Ö·û£¬Ôò²»»á´´½¨·¶Î§£¬Ö»Êǽ«¿ªÊ¼×Ö·û¡¢½áÊø×Ö·ûÒÔ¼°Æä¼äµÄ×Ö·ûÖð¸öתÒå¡£¿ÉʹÓà + <function>ord</function> º¯Êý»ñÈ¡×Ö·ûµÄ ASCII ÂëÖµ¡£ + <informalexample> + <programlisting role="php"> <![CDATA[ <?php echo addcslashes("zoo['.']", 'z..A'); // Êä³ö£º\zoo['\.'] ?> ]]> - </programlisting> - </informalexample> - </para> - <para> - ²Î¼û - <function>stripcslashes</function>¡¢<function>stripslashes</function>¡¢<function>htmlspecialchars</function> - ºÍ <function>quotemeta</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </informalexample> + </para> + <para> + ²Î¼û + <function>stripcslashes</function>£¬<function>stripslashes</function>£¬<function>htmlspecialchars</function> + ºÍ <function>quotemeta</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/addslashes.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/strings/functions/addslashes.xml diff -u phpdoc-zh/reference/strings/functions/addslashes.xml:1.1 phpdoc-zh/reference/strings/functions/addslashes.xml:1.2 --- phpdoc-zh/reference/strings/functions/addslashes.xml:1.1 Wed Apr 21 12:23:54 2004 +++ phpdoc-zh/reference/strings/functions/addslashes.xml Tue Feb 7 03:39:00 2006 @@ -1,49 +1,48 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> - <refentry id="function.addslashes"> - <refnamediv> - <refname>addslashes</refname> - <refpurpose>ʹÓ÷´Ð±ÏßÒýÓÃ×Ö·û´®</refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> - <type>string</type><methodname>addslashes</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <para> - ·µ»Ø×Ö·û´®£¬¸Ã×Ö·û´®ÎªÁËÊý¾Ý¿â²éѯÓï¾äµÈµÄÐèÒªÔÚijЩ×Ö·ûǰ¼ÓÉÏÁË·´Ð±Ïß¡£ÕâЩ×Ö·ûÊǵ¥ÒýºÅ£¨<literal>'</literal>£©¡¢Ë«ÒýºÅ£¨<literal>"</literal>£©¡¢·´Ð±Ïߣ¨<literal>\</literal>£©Óë - NUL£¨&null; ×Ö·û£©¡£ - </para> - <para> - Ò»¸öʹÓà <function>addslashes</function> - µÄÀý×ÓÊǵ±ÄãÒªÍùÊý¾Ý¿âÖÐÊäÈëÊý¾Ýʱ¡£ÀýÈ磬½«Ãû×Ö - <literal>O'reilly</literal> ²åÈëµ½Êý¾Ý¿âÖУ¬Õâ¾ÍÐèÒª¶ÔÆä½øÐÐתÒå¡£´ó¶àÊý¾Ý¿âʹÓà - <literal>\</literal> ×÷ΪתÒå·û£º<literal>O\'reilly</literal>¡£ÕâÑù¿ÉÒÔ½«Êý¾Ý·ÅÈëÊý¾Ý¿âÖУ¬¶ø²»»á²åÈë¶îÍâµÄ - <literal>\</literal>¡£µ± PHP - Ö¸Áî <link linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link> - ±»ÉèÖÃ³É <literal>on</literal> ʱ£¬Òâζ×ŲåÈë - <literal>'</literal> ʱ½«Ê¹Óà - <literal>'</literal> ½øÐÐתÒå¡£ - </para> - <para> - ĬÈÏÇé¿öÏ£¬PHP Ö¸Áî <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> - Ϊ <literal>on</literal>£¬ËüÖ÷ÒªÊǶÔËùÓÐµÄ - GET¡¢POST ºÍ COOKIE Êý¾Ý×Ô¶¯ÔËÐÐ - <function>addslashes</function>¡£²»Òª¶ÔÒѾ­±» - <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> - תÒå¹ýµÄ×Ö·û´®Ê¹Óà - <function>addslashes</function>£¬ÒòΪÕâÑù»áµ¼ÖÂË«²ãתÒå¡£Óöµ½ÕâÖÖÇé¿öʱ¿ÉÒÔʹÓú¯Êý - <function>get_magic_quotes_gpc</function> - ½øÐмì²â¡£ - </para> - <para> - <example> - <title><function>addslashes</function> ʾÀý</title> - <programlisting role="php"> +<refentry id="function.addslashes"> + <refnamediv> + <refname>addslashes</refname> + <refpurpose>ʹÓ÷´Ð±ÏßÒýÓÃ×Ö·û´®</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>addslashes</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + ·µ»Ø×Ö·û´®£¬¸Ã×Ö·û´®ÎªÁËÊý¾Ý¿â²éѯÓï¾äµÈµÄÐèÒªÔÚijЩ×Ö·ûǰ¼ÓÉÏÁË·´Ð±Ïß¡£ÕâЩ×Ö·ûÊǵ¥ÒýºÅ£¨<literal>'</literal>£©¡¢Ë«ÒýºÅ£¨<literal>"</literal>£©¡¢·´Ð±Ïߣ¨<literal>\</literal>£©Óë + NUL£¨&null; ×Ö·û£©¡£ + </para> + <para> + Ò»¸öʹÓà <function>addslashes</function> + µÄÀý×ÓÊǵ±ÄãÒªÍùÊý¾Ý¿âÖÐÊäÈëÊý¾Ýʱ¡£ÀýÈ磬½«Ãû×Ö + <literal>O'reilly</literal> ²åÈëµ½Êý¾Ý¿âÖУ¬Õâ¾ÍÐèÒª¶ÔÆä½øÐÐתÒå¡£´ó¶àÊý¾Ý¿âʹÓà + <literal>\</literal> ×÷ΪתÒå·û£º<literal>O\'reilly</literal>¡£ÕâÑù¿ÉÒÔ½«Êý¾Ý·ÅÈëÊý¾Ý¿âÖУ¬¶ø²»»á²åÈë¶îÍâµÄ + <literal>\</literal>¡£µ± PHP + Ö¸Áî <link linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link> + ±»ÉèÖÃ³É <literal>on</literal> ʱ£¬Òâζ×ŲåÈë + <literal>'</literal> ʱ½«Ê¹Óà + <literal>'</literal> ½øÐÐתÒå¡£ + </para> + <para> + ĬÈÏÇé¿öÏ£¬PHP Ö¸Áî <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> + Ϊ <literal>on</literal>£¬ËüÖ÷ÒªÊǶÔËùÓÐµÄ + GET¡¢POST ºÍ COOKIE Êý¾Ý×Ô¶¯ÔËÐÐ + <function>addslashes</function>¡£²»Òª¶ÔÒѾ­±» + <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> + תÒå¹ýµÄ×Ö·û´®Ê¹Óà + <function>addslashes</function>£¬ÒòΪÕâÑù»áµ¼ÖÂË«²ãתÒå¡£Óöµ½ÕâÖÖÇé¿öʱ¿ÉÒÔʹÓú¯Êý + <function>get_magic_quotes_gpc</function> + ½øÐмì²â¡£ + </para> + <para> + <example> + <title><function>addslashes</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $str = "Is your name O'reilly?"; @@ -52,15 +51,15 @@ echo addslashes($str); ?> ]]> - </programlisting> - </example> - </para> - <para> - ²Î¼û <function>stripslashes</function>¡¢<function>htmlspecialchars</function>¡¢<function>quotemeta</function> - ºÍ <function>get_magic_quotes_gpc</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <para> + ²Î¼û <function>stripslashes</function>£¬<function>htmlspecialchars</function>£¬<function>quotemeta</function> + ºÍ <function>get_magic_quotes_gpc</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/bin2hex.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/strings/functions/bin2hex.xml diff -u phpdoc-zh/reference/strings/functions/bin2hex.xml:1.1 phpdoc-zh/reference/strings/functions/bin2hex.xml:1.2 --- phpdoc-zh/reference/strings/functions/bin2hex.xml:1.1 Thu Apr 22 14:22:00 2004 +++ phpdoc-zh/reference/strings/functions/bin2hex.xml Tue Feb 7 03:39:00 2006 @@ -1,31 +1,28 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> - <refentry id="function.bin2hex"> - <refnamediv> - <refname>bin2hex</refname> - <refpurpose> - ½«¶þ½øÖÆÊý¾Ýת»»³ÉÊ®Áù½øÖƱíʾ - </refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> - <type>string</type><methodname>bin2hex</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <para> - ·µ»Ø ASCII ×Ö·û´®£¬Îª²ÎÊý - <parameter>str</parameter> - µÄÊ®Áù½øÖƱíʾ¡£×ª»»Ê¹ÓÃ×Ö½Ú·½Ê½£¬¸ßËÄλ×Ö½ÚÓÅÏÈ¡£ - </para> - <para> - ²Î¼û <function>pack</function> ºÍ <function>unpack</function>¡£ - </para> - </refsect1> - </refentry> +<refentry id="function.bin2hex"> + <refnamediv> + <refname>bin2hex</refname> + <refpurpose>½«¶þ½øÖÆÊý¾Ýת»»³ÉÊ®Áù½øÖƱíʾ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>bin2hex</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + ·µ»Ø ASCII ×Ö·û´®£¬Îª²ÎÊý + <parameter>str</parameter> + µÄÊ®Áù½øÖƱíʾ¡£×ª»»Ê¹ÓÃ×Ö½Ú·½Ê½£¬¸ßËÄλ×Ö½ÚÓÅÏÈ¡£ + </para> + <para> + ²Î¼û <function>pack</function> ºÍ <function>unpack</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/chop.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/strings/functions/chop.xml diff -u phpdoc-zh/reference/strings/functions/chop.xml:1.1 phpdoc-zh/reference/strings/functions/chop.xml:1.2 --- phpdoc-zh/reference/strings/functions/chop.xml:1.1 Thu Apr 22 14:22:00 2004 +++ phpdoc-zh/reference/strings/functions/chop.xml Tue Feb 7 03:39:00 2006 @@ -1,26 +1,25 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> - <refentry id="function.chop"> - <refnamediv> - <refname>chop</refname> - <refpurpose><function>rtrim</function> µÄ±ðÃûº¯Êý</refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <para> - ´Ëº¯ÊýÊÇ <function>rtrim</function> µÄ±ðÃûº¯Êý¡£ - </para> - <note> - <para> - <function>chop</function> Óë Perl µÄ - <literal>chop()</literal> º¯ÊýÓÐËù²»Í¬£¬Æäɾ³ý×Ö·û´®µÄ×îºóÒ»¸ö×Ö·û¡£ - </para> - </note> - </refsect1> - </refentry> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> +<refentry id="function.chop"> + <refnamediv> + <refname>chop</refname> + <refpurpose><function>rtrim</function> µÄ&Alias;</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias;<function>rtrim</function>¡£ + </simpara> + <note> + <para> + <function>chop</function> Óë Perl µÄ + <literal>chop()</literal> º¯ÊýÓÐËù²»Í¬£¬Ëü»áɾ³ý×Ö·û´®µÄ×îºóÒ»¸ö×Ö·û¡£ + </para> + </note> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/chr.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/strings/functions/chr.xml diff -u phpdoc-zh/reference/strings/functions/chr.xml:1.1 phpdoc-zh/reference/strings/functions/chr.xml:1.2 --- phpdoc-zh/reference/strings/functions/chr.xml:1.1 Thu Apr 22 14:22:00 2004 +++ phpdoc-zh/reference/strings/functions/chr.xml Tue Feb 7 03:39:00 2006 @@ -1,25 +1,24 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> - <refentry id="function.chr"> - <refnamediv> - <refname>chr</refname> - <refpurpose>·µ»ØÖ¸¶¨µÄ×Ö·û</refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> - <type>string</type><methodname>chr</methodname> - <methodparam><type>int</type><parameter>ascii</parameter></methodparam> - </methodsynopsis> - <para> - ·µ»ØÏà¶ÔÓ¦ÓÚ <parameter>ascii</parameter> - ËùÖ¸¶¨µÄµ¥¸ö×Ö·û¡£ - <example> - <title><function>chr</function> ʾÀý</title> - <programlisting role="php"> +<refentry id="function.chr"> + <refnamediv> + <refname>chr</refname> + <refpurpose>·µ»ØÖ¸¶¨µÄ×Ö·û</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>chr</methodname> + <methodparam><type>int</type><parameter>ascii</parameter></methodparam> + </methodsynopsis> + <para> + ·µ»ØÏà¶ÔÓ¦ÓÚ <parameter>ascii</parameter> + ËùÖ¸¶¨µÄµ¥¸ö×Ö·û¡£ + <example> + <title><function>chr</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $str = "The string ends in escape: "; @@ -30,20 +29,19 @@ $str = sprintf("The string ends in escape: %c", 27); ?> ]]> - </programlisting> - </example> - </para> - <para> - Äã¿ÉÒÔÔÚ´Ë´¦ÕÒµ½ ASCII Âë±í£º<ulink url="&url.asciitable;" - >&url.asciitable;</ulink>¡£ - </para> - <para> - ´Ëº¯ÊýÓë <function>ord</function> ÊÇ»¥²¹µÄ¡£²Î¼û - <function>sprintf</function> ÈçºÎʹÓøñʽ×Ö·û´® - <literal>%c</literal>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <para> + ¿ÉÒÔÔÚ´Ë´¦ÕÒµ½ ASCII Âë±í£º<ulink url="&url.asciitable;">&url.asciitable;</ulink>¡£ + </para> + <para> + ´Ëº¯ÊýÓë <function>ord</function> ÊÇ»¥²¹µÄ¡£²Î¼û + <function>sprintf</function> ÈçºÎʹÓøñʽ×Ö·û´® + <literal>%c</literal>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/chunk-split.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-zh/reference/strings/functions/chunk-split.xml diff -u phpdoc-zh/reference/strings/functions/chunk-split.xml:1.2 phpdoc-zh/reference/strings/functions/chunk-split.xml:1.3 --- phpdoc-zh/reference/strings/functions/chunk-split.xml:1.2 Mon Aug 1 15:50:41 2005 +++ phpdoc-zh/reference/strings/functions/chunk-split.xml Tue Feb 7 03:39:00 2006 @@ -1,45 +1,44 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.8 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> - <refentry id="function.chunk-split"> - <refnamediv> - <refname>chunk_split</refname> - <refpurpose>½«×Ö·û´®·Ö¸î³ÉС¿é</refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> - <type>string</type><methodname>chunk_split</methodname> - <methodparam><type>string</type><parameter>body</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>chunklen</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>end</parameter></methodparam> - </methodsynopsis> - <para> - ʹÓô˺¯Êý½«×Ö·û´®·Ö¸î³ÉС¿é·Ç³£ÓÐÓá£ÀýÈ罫 - <function>base64_encode</function> µÄÊä³öת»»³É·ûºÏ - RFC 2045 ÓïÒåµÄ×Ö·û´®¡£Ëü»áÔÚÿ - <parameter>chunklen</parameter>£¨Ä¬ÈÏΪ 76£©¸ö×Ö·ûºó±ß²åÈë - <parameter>end</parameter>£¨Ä¬ÈÏΪ¡°\r\n¡±£©¡£´Ëº¯Êý»á·µ»ØÐµÄ×Ö·û´®£¬¶ø²»»áÐÞ¸ÄÔ­ÓÐ×Ö·û´®¡£ - <example> - <title><function>chunk_split</function> ʾÀý</title> - <programlisting role="php"> +<refentry id="function.chunk-split"> + <refnamediv> + <refname>chunk_split</refname> + <refpurpose>½«×Ö·û´®·Ö¸î³ÉС¿é</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>chunk_split</methodname> + <methodparam><type>string</type><parameter>body</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>chunklen</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>end</parameter></methodparam> + </methodsynopsis> + <para> + ʹÓô˺¯Êý½«×Ö·û´®·Ö¸î³ÉС¿é·Ç³£ÓÐÓá£ÀýÈ罫 + <function>base64_encode</function> µÄÊä³öת»»³É·ûºÏ + RFC 2045 ÓïÒåµÄ×Ö·û´®¡£Ëü»áÔÚÿ + <parameter>chunklen</parameter>£¨Ä¬ÈÏΪ 76£©¸ö×Ö·ûºó±ß²åÈë + <parameter>end</parameter>£¨Ä¬ÈÏΪ¡°\r\n¡±£©¡£´Ëº¯Êý»á·µ»ØÐµÄ×Ö·û´®£¬¶ø²»»áÐÞ¸ÄÔ­ÓÐ×Ö·û´®¡£ + <example> + <title><function>chunk_split</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php // ʹÓà RFC 2045 ÓïÒå¸ñʽ»¯ $data $new_string = chunk_split(base64_encode($data)); ?> ]]> - </programlisting> - </example> - </para> - <simpara> - ²Î¼û <function>str_split</function>¡¢<function>explode</function>¡¢<function>split</function>¡¢<function>wordwrap</function> - ºÍ <ulink url="&url.rfc;2045">RFC 2045</ulink>¡£ - </simpara> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <simpara> + ²Î¼û <function>str_split</function>£¬<function>explode</function>£¬<function>split</function>£¬<function>wordwrap</function> + ºÍ <ulink url="&url.rfc;2045">RFC 2045</ulink>¡£ + </simpara> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/convert-cyr-string.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/strings/functions/convert-cyr-string.xml diff -u phpdoc-zh/reference/strings/functions/convert-cyr-string.xml:1.1 phpdoc-zh/reference/strings/functions/convert-cyr-string.xml:1.2 --- phpdoc-zh/reference/strings/functions/convert-cyr-string.xml:1.1 Fri Apr 23 14:07:19 2004 +++ phpdoc-zh/reference/strings/functions/convert-cyr-string.xml Tue Feb 7 03:39:00 2006 @@ -1,64 +1,62 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> - <refentry id="function.convert-cyr-string"> - <refnamediv> - <refname>convert_cyr_string</refname> - <refpurpose> - ½«×Ö·ûÓÉÒ»ÖÖ Cyrillic ×Ö·ûת»»³ÉÁíÒ»ÖÖ - </refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> - <type>string</type><methodname>convert_cyr_string</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - <methodparam><type>string</type><parameter>from</parameter></methodparam> - <methodparam><type>string</type><parameter>to</parameter></methodparam> - </methodsynopsis> - <para> - ´Ëº¯Êý½«¸ø¶¨µÄ×Ö·û´®´ÓÒ»ÖÖ - Cyrillic ×Ö·ûת»»³ÉÁíÒ»ÖÖ£¬·µ»Ø×ª»»Ö®ºóµÄ×Ö·û´®¡£<parameter>from</parameter> - ºÍ <parameter>to</parameter> - ²ÎÊýΪµ¥¸ö×Ö·û£¬·Ö±ð´ú±íÁËÔ´¼°Ä¿±ê - Cyrillic ×Ö·û¼¯¡£Ö§³ÖµÄÀàÐÍÓУº - <itemizedlist> - <listitem> - <simpara> - k - koi8-r - </simpara> - </listitem> - <listitem> - <simpara> - w - windows-1251 - </simpara> - </listitem> - <listitem> - <simpara> - i - iso8859-5 - </simpara> - </listitem> - <listitem> - <simpara> - a - x-cp866 - </simpara> - </listitem> - <listitem> - <simpara> - d - x-cp866 - </simpara> - </listitem> - <listitem> - <simpara> - m - x-mac-cyrillic - </simpara> - </listitem> - </itemizedlist> - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> +<refentry id="function.convert-cyr-string"> + <refnamediv> + <refname>convert_cyr_string</refname> + <refpurpose>½«×Ö·ûÓÉÒ»ÖÖ Cyrillic ×Ö·ûת»»³ÉÁíÒ»ÖÖ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>convert_cyr_string</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + <methodparam><type>string</type><parameter>from</parameter></methodparam> + <methodparam><type>string</type><parameter>to</parameter></methodparam> + </methodsynopsis> + <para> + ´Ëº¯Êý½«¸ø¶¨µÄ×Ö·û´®´ÓÒ»ÖÖ + Cyrillic ×Ö·ûת»»³ÉÁíÒ»ÖÖ£¬·µ»Ø×ª»»Ö®ºóµÄ×Ö·û´®¡£<parameter>from</parameter> + ºÍ <parameter>to</parameter> + ²ÎÊýΪµ¥¸ö×Ö·û£¬·Ö±ð´ú±íÁËÔ´¼°Ä¿±ê + Cyrillic ×Ö·û¼¯¡£Ö§³ÖµÄÀàÐÍÓУº + <itemizedlist> + <listitem> + <simpara> + k - koi8-r + </simpara> + </listitem> + <listitem> + <simpara> + w - windows-1251 + </simpara> + </listitem> + <listitem> + <simpara> + i - iso8859-5 + </simpara> + </listitem> + <listitem> + <simpara> + a - x-cp866 + </simpara> + </listitem> + <listitem> + <simpara> + d - x-cp866 + </simpara> + </listitem> + <listitem> + <simpara> + m - x-mac-cyrillic + </simpara> + </listitem> + </itemizedlist> + </para> + &note.bin-safe; + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/count-chars.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/strings/functions/count-chars.xml diff -u phpdoc-zh/reference/strings/functions/count-chars.xml:1.1 phpdoc-zh/reference/strings/functions/count-chars.xml:1.2 --- phpdoc-zh/reference/strings/functions/count-chars.xml:1.1 Fri Apr 23 14:07:19 2004 +++ phpdoc-zh/reference/strings/functions/count-chars.xml Tue Feb 7 03:39:00 2006 @@ -1,80 +1,70 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.5 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.4 --> - <refentry id="function.count-chars"> - <refnamediv> - <refname>count_chars</refname> - <refpurpose> - ·µ»Ø×Ö·û´®ËùÓÃ×Ö·ûµÄÐÅÏ¢ - </refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> - <type>mixed</type><methodname>count_chars</methodname> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> - </methodsynopsis> - <para> - ͳ¼Æ <parameter>string</parameter> - ÖÐÿ¸ö×Ö½ÚÖµ£¨0..255£©³öÏֵĴÎÊý£¬Ê¹ÓöàÖÖģʽ·µ»Ø½á¹û¡£¿ÉÑ¡²ÎÊý - <parameter>mode</parameter> ĬÈÏֵΪ - 0¡£¸ù¾Ý²»Í¬µÄ - <parameter>mode</parameter>£¬<function>count_chars</function> - ·µ»ØÏÂÁв»Í¬µÄ½á¹û£º - <itemizedlist> - <listitem> - <simpara> - 0 - ÒÔËùÓеÄÿ¸ö×Ö½ÚÖµ×÷Ϊ¼üÃû£¬³öÏÖ´ÎÊý×÷ΪֵµÄÊý×é¡£ - </simpara> - </listitem> - <listitem> - <simpara> - 1 - Óë 0 Ïàͬ£¬µ«Ö»Áгö³öÏÖ´ÎÊý´óÓÚÁãµÄ×Ö½ÚÖµ¡£ - </simpara> - </listitem> - <listitem> - <simpara> - 2 - Óë 0 Ïàͬ£¬µ«Ö»Áгö³öÏÖ´ÎÊýµÈÓÚÁãµÄ×Ö½ÚÖµ¡£ - </simpara> - </listitem> - <listitem> - <simpara> - 3 - ·µ»ØÓÉËùÓÐʹÓÃÁ˵Ä×Ö½ÚÖµ×é³ÉµÄ×Ö·û´®¡£ - </simpara> - </listitem> - <listitem> - <simpara> - 4 - ·µ»ØÓÉËùÓÐδʹÓõÄ×Ö½ÚÖµ×é³ÉµÄ×Ö·û´®¡£ - </simpara> - </listitem> - </itemizedlist> - </para> - <para> - <example> - <title><function>count_chars</function> ʾÀý</title> - <programlisting role="php"> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.7 Maintainer: nio Status: ready --> +<refentry id="function.count-chars"> + <refnamediv> + <refname>count_chars</refname> + <refpurpose>·µ»Ø×Ö·û´®ËùÓÃ×Ö·ûµÄÐÅÏ¢</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>mixed</type><methodname>count_chars</methodname> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> + </methodsynopsis> + <para> + ͳ¼Æ <parameter>string</parameter> + ÖÐÿ¸ö×Ö½ÚÖµ£¨0..255£©³öÏֵĴÎÊý£¬Ê¹ÓöàÖÖģʽ·µ»Ø½á¹û¡£¿ÉÑ¡²ÎÊý + <parameter>mode</parameter> ĬÈÏֵΪ + 0¡£¸ù¾Ý²»Í¬µÄ + <parameter>mode</parameter>£¬<function>count_chars</function> + ·µ»ØÏÂÁв»Í¬µÄ½á¹û£º + <itemizedlist> + <listitem> + <simpara> + 0 - ÒÔËùÓеÄÿ¸ö×Ö½ÚÖµ×÷Ϊ¼üÃû£¬³öÏÖ´ÎÊý×÷ΪֵµÄÊý×é¡£ + </simpara> + </listitem> + <listitem> + <simpara> + 1 - Óë 0 Ïàͬ£¬µ«Ö»Áгö³öÏÖ´ÎÊý´óÓÚÁãµÄ×Ö½ÚÖµ¡£ + </simpara> + </listitem> + <listitem> + <simpara> + 2 - Óë 0 Ïàͬ£¬µ«Ö»Áгö³öÏÖ´ÎÊýµÈÓÚÁãµÄ×Ö½ÚÖµ¡£ + </simpara> + </listitem> + <listitem> + <simpara> + 3 - ·µ»ØÓÉËùÓÐʹÓÃÁ˵Ä×Ö½ÚÖµ×é³ÉµÄ×Ö·û´®¡£ + </simpara> + </listitem> + <listitem> + <simpara> + 4 - ·µ»ØÓÉËùÓÐδʹÓõÄ×Ö½ÚÖµ×é³ÉµÄ×Ö·û´®¡£ + </simpara> + </listitem> + </itemizedlist> + </para> + <para> + <example> + <title><function>count_chars</function> ʾÀý</title> + <programlisting role="php"> <![CDATA[ <?php - $data = "Two Ts and one F."; -$result = count_chars($data, 0); - -for ($i=0; $i < count($result); $i++) { - if ($result[$i] != 0) - echo "There were $result[$i] instance(s) of \"" , chr($i) , "\" in the string.\n"; +foreach (count_chars($data, 1) as $i => $val) { + echo "There were $val instance(s) of \"" , chr($i) , "\" in the string.\n"; } - ?> ]]> - </programlisting> - <para> - ϱßΪʾÀýÊä³ö£º - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ There were 4 instance(s) of " " in the string. There were 1 instance(s) of "." in the string. @@ -88,15 +78,15 @@ There were 1 instance(s) of "s" in the string. There were 1 instance(s) of "w" in the string. ]]> - </screen> - </example> - </para> - <simpara> - ²Î¼û <function>strpos</function> ºÍ - <function>substr_count</function>¡£ - </simpara> - </refsect1> - </refentry> + </screen> + </example> + </para> + <simpara> + ²Î¼û <function>strpos</function> ºÍ + <function>substr_count</function>¡£ + </simpara> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/crc32.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/strings/functions/crc32.xml diff -u phpdoc-zh/reference/strings/functions/crc32.xml:1.1 phpdoc-zh/reference/strings/functions/crc32.xml:1.2 --- phpdoc-zh/reference/strings/functions/crc32.xml:1.1 Fri Apr 23 14:07:19 2004 +++ phpdoc-zh/reference/strings/functions/crc32.xml Tue Feb 7 03:39:00 2006 @@ -1,48 +1,47 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.6 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.37 --> - <refentry id="function.crc32"> - <refnamediv> - <refname>crc32</refname> - <refpurpose>¼ÆËãÒ»¸ö×Ö·û´®µÄ crc32 ¶àÏîʽ</refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> - <type>int</type><methodname>crc32</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <para> - Éú³É <parameter>str</parameter> - µÄ 32 λѭ»·ÈßÓàУÑéÂë¶àÏîʽ¡£Õâͨ³£ÓÃÓÚ¼ì²é´«ÊäµÄÊý¾ÝÊÇ·ñÍêÕû¡£ - </para> - <para> - ÓÉÓÚ PHP µÄÕûÊýÊÇ´ø·ûºÅµÄ£¬Ðí¶à crc32 УÑéÂ뽫·µ»Ø¸ºÕûÊý£¬Òò´ËÄãÐèҪʹÓà - <function>sprintf</function> »ò <function>printf</function> - µÄ¡°%u¡±¸ñʽ·ûÀ´»ñÈ¡±íʾÎÞ·ûºÅ crc32 УÑéÂëµÄ×Ö·û´®¡£ - </para> - <para> - ʾÀýÖеĵڶþÐÐÑÝʾÁËÈçºÎʹÓà <function>printf</function> - º¯Êýת»»Ð£ÑéÂ룺 - <example> - <title>ÏÔʾ crc32 УÑéÂë</title> - <programlisting role="php"> +<refentry id="function.crc32"> + <refnamediv> + <refname>crc32</refname> + <refpurpose>¼ÆËãÒ»¸ö×Ö·û´®µÄ crc32 ¶àÏîʽ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</type><methodname>crc32</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + Éú³É <parameter>str</parameter> + µÄ 32 λѭ»·ÈßÓàУÑéÂë¶àÏîʽ¡£Õâͨ³£ÓÃÓÚ¼ì²é´«ÊäµÄÊý¾ÝÊÇ·ñÍêÕû¡£ + </para> + <para> + ÓÉÓÚ PHP µÄÕûÊýÊÇ´ø·ûºÅµÄ£¬Ðí¶à crc32 УÑéÂ뽫·µ»Ø¸ºÕûÊý£¬Òò´ËÄãÐèҪʹÓà + <function>sprintf</function> »ò <function>printf</function> + µÄ¡°%u¡±¸ñʽ·ûÀ´»ñÈ¡±íʾÎÞ·ûºÅ crc32 УÑéÂëµÄ×Ö·û´®¡£ + </para> + <para> + ʾÀýÖеĵڶþÐÐÑÝʾÁËÈçºÎʹÓà <function>printf</function> + º¯Êýת»»Ð£ÑéÂ룺 + <example> + <title>ÏÔʾ crc32 УÑéÂë</title> + <programlisting role="php"> <![CDATA[ <?php $checksum = crc32("The quick brown fox jumped over the lazy dog."); printf("%u\n", $checksum); ?> ]]> - </programlisting> - </example> - </para> - <para> - ²Î¼û <function>md5</function> ºÍ <function>sha1</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <para> + ²Î¼û <function>md5</function> ºÍ <function>sha1</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/strings/functions/explode.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/strings/functions/explode.xml diff -u phpdoc-zh/reference/strings/functions/explode.xml:1.1 phpdoc-zh/reference/strings/functions/explode.xml:1.2 --- phpdoc-zh/reference/strings/functions/explode.xml:1.1 Wed Nov 3 15:09:31 2004 +++ phpdoc-zh/reference/strings/functions/explode.xml Tue Feb 7 03:39:00 2006 @@ -1,71 +1,70 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.8 Maintainer: nio Status: ready --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> - <refentry id="function.explode"> - <refnamediv> - <refname>explode</refname> - <refpurpose>ʹÓÃÒ»¸ö×Ö·û´®·Ö¸îÁíÒ»¸ö×Ö·û´®</refpurpose> - </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> - <type>array</type><methodname>explode</methodname> - <methodparam><type>string</type><parameter>separator</parameter></methodparam> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> - </methodsynopsis> - <para> - ´Ëº¯Êý·µ»ØÓÉ×Ö·û´®×é³ÉµÄÊý×飬ÿ¸öÔªËØ¶¼ÊÇ - <parameter>string</parameter> - µÄÒ»¸ö×Ó´®£¬ËüÃDZ»×Ö·û´® - <parameter>separator</parameter> - ×÷Ϊ±ß½çµã·Ö¸î³öÀ´¡£Èç¹ûÉèÖÃÁË - <parameter>limit</parameter> - ²ÎÊý£¬Ôò·µ»ØµÄÊý×é°üº¬×î¶à - <parameter>limit</parameter> - ¸öÔªËØ£¬¶ø×îºóÄǸöÔªËØ½«°üº¬ - <parameter>string</parameter> - µÄÊ£Óಿ·Ö¡£ - </para> - <para> - Èç¹û - <parameter>separator</parameter> - Ϊ¿Õ×Ö·û´®£¨""£©£¬<function>explode</function> - ½«·µ»Ø &false;¡£Èç¹û - <parameter>separator</parameter> - Ëù°üº¬µÄÖµÔÚ - <parameter>string</parameter> - ÖÐÕÒ²»µ½£¬ÄÇô - <function>explode</function> - ½«·µ»Ø°üº¬ <parameter>string</parameter> - µ¥¸öÔªËØµÄÊý×é¡£ - </para> - <para> - Èç¹û - <parameter>limit</parameter> - ²ÎÊýÊǸºÊý£¬Ôò·µ»Ø³ýÁË×îºóµÄ - <parameter>limit</parameter> - ¸öÔªËØÍâµÄËùÓÐÔªËØ¡£´ËÌØÐÔÊÇ PHP 5.1.0 ÖÐÐÂÔöµÄ¡£ - </para> - <para> - ÓÉÓÚÀúÊ·Ô­Òò£¬ËäÈ» <function>implode</function> - ¿ÉÒÔ½ÓÊÕÁ½ÖÖ²ÎÊý˳Ðò£¬µ«ÊÇ - <function>explode</function> ²»ÐС£Äã±ØÐë±£Ö¤ - <parameter>separator</parameter> ²ÎÊýÔÚ - <parameter>string</parameter> ²ÎÊý֮ǰ²ÅÐС£ - </para> - <note> - <para> - ²ÎÊý <parameter>limit</parameter> ÊÇÔÚ PHP - 4.0.1 ÖмÓÈëµÄ¡£ - </para> - </note> - <para> - <example> - <title><function>explode</function> ʾÀý</title> - <programlisting role="php"> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.11 Maintainer: nio Status: ready --> +<refentry id="function.explode"> + <refnamediv> + <refname>explode</refname> + <refpurpose>ʹÓÃÒ»¸ö×Ö·û´®·Ö¸îÁíÒ»¸ö×Ö·û´®</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>explode</methodname> + <methodparam><type>string</type><parameter>separator</parameter></methodparam> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> + </methodsynopsis> + <para> + ´Ëº¯Êý·µ»ØÓÉ×Ö·û´®×é³ÉµÄÊý×飬ÿ¸öÔªËØ¶¼ÊÇ + <parameter>string</parameter> + µÄÒ»¸ö×Ó´®£¬ËüÃDZ»×Ö·û´® + <parameter>separator</parameter> + ×÷Ϊ±ß½çµã·Ö¸î³öÀ´¡£Èç¹ûÉèÖÃÁË + <parameter>limit</parameter> + ²ÎÊý£¬Ôò·µ»ØµÄÊý×é°üº¬×î¶à + <parameter>limit</parameter> + ¸öÔªËØ£¬¶ø×îºóÄǸöÔªËØ½«°üº¬ + <parameter>string</parameter> + µÄÊ£Óಿ·Ö¡£ + </para> + <para> + Èç¹û + <parameter>separator</parameter> + Ϊ¿Õ×Ö·û´®£¨""£©£¬<function>explode</function> + ½«·µ»Ø &false;¡£Èç¹û + <parameter>separator</parameter> + Ëù°üº¬µÄÖµÔÚ + <parameter>string</parameter> + ÖÐÕÒ²»µ½£¬ÄÇô + <function>explode</function> + ½«·µ»Ø°üº¬ <parameter>string</parameter> + µ¥¸öÔªËØµÄÊý×é¡£ + </para> + <para> + Èç¹û + <parameter>limit</parameter> + ²ÎÊýÊǸºÊý£¬Ôò·µ»Ø³ýÁË×îºóµÄ + <parameter>limit</parameter> + ¸öÔªËØÍâµÄËùÓÐÔªËØ¡£´ËÌØÐÔÊÇ PHP 5.1.0 ÖÐÐÂÔöµÄ¡£ + </para> + <para> + ÓÉÓÚÀúÊ·Ô­Òò£¬ËäÈ» <function>implode</function> + ¿ÉÒÔ½ÓÊÕÁ½ÖÖ²ÎÊý˳Ðò£¬µ«ÊÇ + <function>explode</function> ²»ÐС£Äã±ØÐë±£Ö¤ + <parameter>separator</parameter> ²ÎÊýÔÚ + <parameter>string</parameter> ²ÎÊý֮ǰ²ÅÐС£ + </para> + <note> + <para> + ²ÎÊý <parameter>limit</parameter> ÊÇÔÚ PHP + 4.0.1 ÖмÓÈëµÄ¡£ + </para> + </note> + <para> + <example> + <title><function>explode</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php // ʾÀý 1 @@ -82,13 +81,13 @@ ?> ]]> - </programlisting> - </example> - </para> - <para> - <example> - <title><parameter>limit</parameter> ²ÎÊýʾÀý</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title><parameter>limit</parameter> ²ÎÊýÀý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $str = 'one|two|three|four'; @@ -96,15 +95,13 @@ // ÕýÊýµÄ limit print_r(explode('|', $str, 2)); -// ¸ºÊýµÄ limit +// ¸ºÊýµÄ limit£¨×Ô PHP 5.1 Æð£© print_r(explode('|', $str, -1)); ?> ]]> - </programlisting> - <para> - ÒÔÉÏʾÀý½«Êä³ö£º - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ Array ( @@ -118,19 +115,19 @@ [2] => three ) ]]> - </screen> - </example> - </para> - - &note.bin-safe; - - <para> - ²Î¼û - <function>preg_split</function>¡¢<function>spliti</function>¡¢<function>split</function> - Óë <function>implode</function>¡£ - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + + &note.bin-safe; + + <para> + ²Î¼û + <function>preg_split</function>£¬<function>spliti</function>£¬<function>split</function>£¬<function>strtok</function> + ºÍ <function>implode</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.zh (#2776) next »