cvs: phpdoc-zh / language-snippets.ent /appendices reserved.constants.core.xml /install/windows building.xml /reference/pcre reference.xml
/reference/regex/functions ereg-replace.xml ereg.xml eregi-replace.xml eregi.xml split.xml spliti.xml sql-regcase.xml /reference/session ini.xml

From: Date: Thu, 09 Feb 2006 04:08:01 +0000
Subject: cvs: phpdoc-zh / language-snippets.ent /appendices reserved.constants.core.xml /install/windows building.xml /reference/pcre reference.xml
/reference/regex/functions ereg-replace.xml ereg.xml eregi-replace.xml eregi.xml split.xml spliti.xml sql-regcase.xml /reference/session ini.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2779@lists.php.net to get a copy of this message
dallas Thu Feb 9 04:08:01 2006 UTC Modified files: /phpdoc-zh language-snippets.ent /phpdoc-zh/appendices reserved.constants.core.xml /phpdoc-zh/install/windows building.xml /phpdoc-zh/reference/pcre reference.xml /phpdoc-zh/reference/regex/functions ereg-replace.xml ereg.xml eregi-replace.xml eregi.xml split.xml spliti.xml sql-regcase.xml /phpdoc-zh/reference/session ini.xml Log: Updated.

http://cvs.php.net/viewcvs.cgi/phpdoc-zh/language-snippets.ent?r1=1.68&r2=1.69&diff_format=u Index: phpdoc-zh/language-snippets.ent diff -u phpdoc-zh/language-snippets.ent:1.68 phpdoc-zh/language-snippets.ent:1.69 --- phpdoc-zh/language-snippets.ent:1.68 Sat Nov 19 03:07:52 2005 +++ phpdoc-zh/language-snippets.ent Thu Feb 9 04:08:01 2006 @@ -1,7 +1,7 @@ <?xml version='1.0' encoding="gb2312"?> -<!-- $Revision: 1.68 $ --> +<!-- $Revision: 1.69 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.160 Maintainer: Gregory Status: ready --> +<!-- EN-Revision: 1.161 Maintainer: Gregory Status: ready --> <!-- CREDITS: dallas,class007,yincheng --> <!-- ±£³ÖÅÅÐò --> @@ -82,10 +82,9 @@ PHP ÒÔºóµÄ·¢²¼¶ø¸Ä±ä¡£Ê¹Óñ¾º¯Êý·çÏÕ×Ôµ£¡£</simpara></warning>'> <!ENTITY warn.imaprecodeyaz '<warning><simpara><link -linkend="ref.imap">IMAP</link> À©Õ¹Ä£¿é²»ÄÜºÍ <link linkend="ref.recode">recode</link> -À©Õ¹Ä£¿é£¬<link linkend="ref.yaz">YAZ</link> -À©Õ¹Ä£¿éÒÔ¼° <link linkend="ref.cyrus">Cyrus</link> -À©Õ¹Ä£¿éͬʱʹÓá£ÒòΪËüÃÇʹÓÃÁËÏàͬµÄÄÚ²¿·ûºÅ¡£</simpara></warning>'> +linkend="ref.imap">IMAP</link>£¬<link linkend="ref.recode">recode</link>£¬<link +linkend="ref.yaz">YAZ</link> ºÍ <link linkend="ref.cyrus">Cyrus</link> +À©Õ¹Ä£¿é²»ÄÜͬʱʹÓã¬ÒòΪËüÃǹ²ÏíÁËÏàͬµÄÄÚ²¿·ûºÅ¡£</simpara></warning>'> <!ENTITY warn.install.cgi '<warning><para>Èç¹ûʹÓà CGI ·½Ê½°²×°£¬Ôò·þÎñÆ÷¶ÔÓÚijЩ¿ÉÄܵĹ¥»÷ÊÇ¿ª·ÅµÄ¡£ÇëÔĶÁ @@ -512,5 +511,4 @@ <!-- SSH2 Extension --> <!ENTITY note.ssh2.subsystem.publickey '<note><simpara>¹«Ô¿ÏµÍ³ÓÃÓÚ¹ÜÀí·þÎñÆ÷ÉϵĿͻ§<emphasis>ÒѾ­</emphasis>±»ÈÏÖ¤µÄ¹«Ô¿¡£ÒªÓù«Ô¿ÈÏÖ¤·½·¨ÔÚÔ¶³ÌϵͳÉÏÈÏÖ¤£¬Ó¦¸ÃÓà -<function>ssh2_auth_pubkey_file</function> º¯Êý¡£</simpara></note>'> - +<function>ssh2_auth_pubkey_file</function> º¯Êý¡£</simpara></note>'> \ No newline at end of file http://cvs.php.net/viewcvs.cgi/phpdoc-zh/appendices/reserved.constants.core.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-zh/appendices/reserved.constants.core.xml diff -u phpdoc-zh/appendices/reserved.constants.core.xml:1.7 phpdoc-zh/appendices/reserved.constants.core.xml:1.8 --- phpdoc-zh/appendices/reserved.constants.core.xml:1.7 Thu Oct 6 16:07:03 2005 +++ phpdoc-zh/appendices/reserved.constants.core.xml Thu Feb 9 04:08:01 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.18 Maintainer: class007 Status: ready --> +<!-- EN-Revision: 1.19 Maintainer: class007 Status: ready --> <sect2 id="reserved.constants.core"> <title>ÄÚºËÔ¤¶¨Òå³£Á¿</title> <simpara> @@ -30,6 +30,17 @@ </varlistentry> <varlistentry> <term> + <constant>PHP_SAPI</constant> + (<type>string</type>) + </term> + <listitem> + <simpara> + ×Ô PHP 4.2.0 Æð¿ÉÓᣲμû <function>php_sapi_name</function>¡£ + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> <constant>PHP_EOL</constant> (<type>string</type>) </term> @@ -103,6 +114,17 @@ </varlistentry> <varlistentry> <term> + <constant>PHP_PREFIX</constant> + (<type>string</type>) + </term> + <listitem> + <simpara> + ×Ô PHP 4.3.0 Æð¿ÉÓà + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> <constant>PHP_BINDIR</constant> (<type>string</type>) </term> @@ -163,6 +185,27 @@ </varlistentry> <varlistentry> <term> + <constant>PHP_CONFIG_FILE_SCAN_DIR</constant> + (<type>string</type>) + </term> + <listitem> + <simpara> + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_SHLIB_SUFFIX</constant> + (<type>string</type>) + </term> + <listitem> + <simpara> + ×Ô PHP 4.3.0 Æð¿ÉÓà + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> <constant>PHP_OUTPUT_HANDLER_START</constant> (<type>integer</type>) </term> http://cvs.php.net/viewcvs.cgi/phpdoc-zh/install/windows/building.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-zh/install/windows/building.xml diff -u phpdoc-zh/install/windows/building.xml:1.7 phpdoc-zh/install/windows/building.xml:1.8 --- phpdoc-zh/install/windows/building.xml:1.7 Fri Dec 16 02:28:26 2005 +++ phpdoc-zh/install/windows/building.xml Thu Feb 9 04:08:01 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.10 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.12 Maintainer: dallas Status: ready --> <sect1 id="install.windows.building"> <title>´ÓÔ´³ÌÐò±àÒë</title> <para> @@ -90,6 +90,13 @@ Ŀ¼ÖÐÈ¥¡£ </simpara> </listitem> + <listitem> + <simpara> + Èç¹ûûÓа²×°ÓÐ bison ºÍ flex µÄ Cygwin£¬ÄÇ»¹ÐèÒª½« + <filename class="directory">C:\work\win32build\bin</filename> Ŀ¼·ÅÈëϵͳ + PATH ÖУ¬ÒÔʹ´Ë¹¤¾ß¿ÉÒÔ±»ÅäÖýű¾ÕÒµ½¡£ + </simpara> + </listitem> </itemizedlist> ¾­¹ýÒÔÉϲ½ÖèºóĿ¼½á¹¹Ó¦¸ÃÈçÏ£º <screen> http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/pcre/reference.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-zh/reference/pcre/reference.xml diff -u phpdoc-zh/reference/pcre/reference.xml:1.6 phpdoc-zh/reference/pcre/reference.xml:1.7 --- phpdoc-zh/reference/pcre/reference.xml:1.6 Tue Sep 6 17:38:12 2005 +++ phpdoc-zh/reference/pcre/reference.xml Thu Feb 9 04:08:01 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.13 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.15 Maintainer: dallas Status: ready --> <!-- Purpose: basic.text --> <!-- Membership: bundled --> @@ -27,6 +27,11 @@ PHP Ò²Ö§³Ö POSIX À©Õ¹Óï·¨µÄÕýÔò±í´ïʽ£¬¼û <link linkend="ref.regex">POSIX À©Õ¹ÕýÔò±í´ïʽº¯Êý</link>¡£ </para> + <note> + <para> + ±¾À©Õ¹¿â±£³ÖÓÐÒ»¸öÒѱàÒëµÄÕýÔò±í´ïʽµÄÈ«¾ÖÏ̻߳¯»º´æ£¨×î´ó 4096£©¡£ + </para> + </note> <warning> <para> ÒªÁôÒâµ½ PCRE µÄһЩ¾ÖÏÞ¡£¸ü¶àÐÅÏ¢¼û <ulink @@ -37,11 +42,7 @@ <section id="pcre.requirements"> &reftitle.required; - <para> - ÕýÔò±í´ïʽµÄÖ§³ÖÊÇÓÉ PCRE£¨Perl Compatible Regular Expression£©¿âÌṩµÄ£¬ÕâÊǸö¿ª·ÅÔ´´úÂëµÄÈí¼þ£¬×÷ÕßΪ - Philip Hazel£¬°æÈ¨ÊôÓÚÓ¢¹ú½£ÇÅ´óѧ¡£¿ÉÓÚÒÔϵØÖ·»ñµÃ£º<ulink - url="&url.pcre;">&url.pcre;</ulink>¡£ - </para> + &no.requirement; </section> &reference.pcre.configure; http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/regex/functions/ereg-replace.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-zh/reference/regex/functions/ereg-replace.xml diff -u phpdoc-zh/reference/regex/functions/ereg-replace.xml:1.2 phpdoc-zh/reference/regex/functions/ereg-replace.xml:1.3 --- phpdoc-zh/reference/regex/functions/ereg-replace.xml:1.2 Thu Jul 14 17:36:20 2005 +++ phpdoc-zh/reference/regex/functions/ereg-replace.xml Thu Feb 9 04:08:01 2006 @@ -1,71 +1,69 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> - <refentry id="function.ereg-replace"> - <refnamediv> - <refname>ereg_replace</refname> - <refpurpose>Ìæ»»ÕýÔò±í´ïʽ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>ereg_replace</methodname> - <methodparam><type>string</type><parameter>pattern</parameter></methodparam> - <methodparam><type>string</type><parameter>replacement</parameter></methodparam> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - </methodsynopsis> - <simpara> - ±¾º¯ÊýÔÚ <parameter>string</parameter> ÖÐɨÃèÓë - <parameter>pattern</parameter> Æ¥ÅäµÄ²¿·Ö£¬²¢½«ÆäÌæ»»Îª - <parameter>replacement</parameter>¡£ - </simpara> - <simpara> - ·µ»ØÌæ»»ºóµÄ×Ö·û´®¡££¨Èç¹ûûÓпɹ©Ìæ»»µÄÆ¥ÅäÏîÔò»á·µ»ØÔ­×Ö·û´®¡££© - </simpara> - <simpara> - Èç¹û <parameter>pattern</parameter> - °üº¬ÓÐÀ¨ºÅÄÚµÄ×Ó´®£¬Ôò <parameter>replacement</parameter> - ¿ÉÒÔ°üº¬ÐÎÈç - <literal>\\<replaceable>digit</replaceable></literal> - µÄ×Ó´®£¬ÕâЩ×Ó´®½«±»Ì滻ΪÊý×Ö±íʾµÄµÄµÚ¼¸¸öÀ¨ºÅÄÚµÄ×Ó´®£»<literal>\\0</literal> - Ôò°üº¬ÁË×Ö·û´®µÄÕû¸öÄÚÈÝ¡£×î¶à¿ÉÒÔÓþŸö×Ó´®¡£À¨ºÅ¿ÉÒÔǶÌ×£¬´ËÇéÐÎÏÂÒÔ×óÔ²À¨ºÅÀ´¼ÆËã˳Ðò¡£ - </simpara> - <simpara> - Èç¹ûδÔÚ <parameter>string</parameter> - ÖÐÕÒµ½Æ¥ÅäÏÔò - <parameter>string</parameter> ½«Ô­Ñù·µ»Ø¡£ - </simpara> - <para> - ÀýÈ磬ÏÂÃæµÄ´úÂëÆ¬¶ÏÊä³ö - "This was a test" Èý´Î£º - </para> - <para> - <example> - <title><function>ereg_replace</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.ereg-replace"> + <refnamediv> + <refname>ereg_replace</refname> + <refpurpose>ÕýÔò±í´ïÊ½Ìæ»»</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>ereg_replace</methodname> + <methodparam><type>string</type><parameter>pattern</parameter></methodparam> + <methodparam><type>string</type><parameter>replacement</parameter></methodparam> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + </methodsynopsis> + <simpara> + ±¾º¯ÊýÔÚ <parameter>string</parameter> ÖÐɨÃèÓë + <parameter>pattern</parameter> Æ¥ÅäµÄ²¿·Ö£¬²¢½«ÆäÌæ»»Îª + <parameter>replacement</parameter>¡£ + </simpara> + <simpara> + ·µ»ØÌæ»»ºóµÄ×Ö·û´®¡££¨Èç¹ûûÓпɹ©Ìæ»»µÄÆ¥ÅäÏîÔò»á·µ»ØÔ­×Ö·û´®¡££© + </simpara> + <simpara> + Èç¹û <parameter>pattern</parameter> + °üº¬ÓÐÀ¨ºÅÄÚµÄ×Ó´®£¬Ôò <parameter>replacement</parameter> + ¿ÉÒÔ°üº¬ÐÎÈç + <literal>\\<replaceable>digit</replaceable></literal> + µÄ×Ó´®£¬ÕâЩ×Ó´®½«±»Ì滻ΪÊý×Ö±íʾµÄµÄµÚ¼¸¸öÀ¨ºÅÄÚµÄ×Ó´®£»<literal>\\0</literal> + Ôò°üº¬ÁË×Ö·û´®µÄÕû¸öÄÚÈÝ¡£×î¶à¿ÉÒÔÓþŸö×Ó´®¡£À¨ºÅ¿ÉÒÔǶÌ×£¬´ËÇéÐÎÏÂÒÔ×óÔ²À¨ºÅÀ´¼ÆËã˳Ðò¡£ + </simpara> + <simpara> + Èç¹ûδÔÚ <parameter>string</parameter> + ÖÐÕÒµ½Æ¥ÅäÏÔò + <parameter>string</parameter> ½«Ô­Ñù·µ»Ø¡£ + </simpara> + <para> + ÀýÈ磬ÏÂÃæµÄ´úÂëÆ¬¶ÏÊä³ö + "This was a test" Èý´Î£º + </para> + <para> + <example> + <title><function>ereg_replace</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php - $string = "This is a test"; echo str_replace(" is", " was", $string); echo ereg_replace("( )is", "\\1was", $string); echo ereg_replace("(( )is)", "\\2was", $string); - ?> ]]> - </programlisting> - </example> - </para> - <para> - ҪעÒâµÄÒ»µãÊÂÈç¹ûÔÚ <parameter>replacement</parameter> - ²ÎÊýÖÐʹÓÃÁËÕûÊýÖµ£¬Ôò¿ÉÄܵò»µ½ËùÆÚÍûµÄ½á¹û¡£ÕâÊÇÒòΪ - <function>ereg_replace</function> ½«°ÑÊý×Ö×÷Ϊ×Ö·ûµÄÐòÁÐÖµÀ´½âÊͲ¢Ó¦ÓÃÖ®¡£ÀýÈ磺 - </para> - <para> - <example> - <title><function>ereg_replace</function> Àý×Ó</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + ҪעÒâµÄÒ»µãÊÇÈç¹ûÔÚ <parameter>replacement</parameter> + ²ÎÊýÖÐʹÓÃÁËÕûÊýÖµ£¬Ôò¿ÉÄܵò»µ½ËùÆÚÍûµÄ½á¹û¡£ÕâÊÇÒòΪ + <function>ereg_replace</function> ½«°ÑÊý×Ö×÷Ϊ×Ö·ûµÄÐòÁÐÖµÀ´½âÊͲ¢Ó¦ÓÃÖ®¡£ÀýÈ磺 + </para> + <para> + <example> + <title><function>ereg_replace</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php /* ²»ÄܲúÉú³öÆÚÍûµÄ½á¹û */ @@ -81,35 +79,35 @@ echo $string; /* Output: 'This string has 4 words.' */ ?> ]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>½« URL Ìæ»»Îª³¬Á¬½Ó</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title>½« URL Ìæ»»Îª³¬Á¬½Ó</title> + <programlisting role="php"> <![CDATA[ <?php $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\\0\">\\0</a>", $text); ?> ]]> - </programlisting> - </example> - </para> - <tip> - <para> - <function>preg_replace</function> º¯ÊýʹÓÃÁË - Perl ¼æÈÝÕýÔò±í´ïʽÓï·¨£¬Í¨³£ÊÇ±È - <function>ereg_replace</function> ¸ü¿ìµÄÌæ´ú·½°¸¡£ - </para> - </tip> - <para> - ²Î¼û <function>ereg</function>£¬<function>eregi</function>£¬<function>eregi_replace</function>£¬<function>str_replace</function> - ºÍ <function>preg_match</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <tip> + <para> + <function>preg_replace</function> º¯ÊýʹÓÃÁË + Perl ¼æÈÝÕýÔò±í´ïʽÓï·¨£¬Í¨³£ÊÇ±È + <function>ereg_replace</function> ¸ü¿ìµÄÌæ´ú·½°¸¡£ + </para> + </tip> + <para> + ²Î¼û <function>ereg</function>£¬<function>eregi</function>£¬<function>eregi_replace</function>£¬<function>str_replace</function> + ºÍ <function>preg_match</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/regex/functions/ereg.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/regex/functions/ereg.xml diff -u phpdoc-zh/reference/regex/functions/ereg.xml:1.1 phpdoc-zh/reference/regex/functions/ereg.xml:1.2 --- phpdoc-zh/reference/regex/functions/ereg.xml:1.1 Mon Sep 15 19:22:08 2003 +++ phpdoc-zh/reference/regex/functions/ereg.xml Thu Feb 9 04:08:01 2006 @@ -1,59 +1,60 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> - <refentry id="function.ereg"> - <refnamediv> - <refname>ereg</refname> - <refpurpose>ÕýÔò±í´ïʽƥÅä</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>ereg</methodname> - <methodparam><type>string</type><parameter>pattern</parameter></methodparam> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>regs</parameter></methodparam> - </methodsynopsis> - <note> - <para> - ʹÓà Perl ¼æÈÝÕýÔò±í´ïʽÓï·¨µÄ <function>preg_match</function> - º¯Êýͨ³£ÊÇ±È <function>ereg</function> ¸ü¿ìµÄÌæ´ú·½°¸¡£ - </para> - </note> - <simpara> - ÒÔÇø·Ö´óСдµÄ·½Ê½ÔÚ <parameter>string</parameter> - ÖÐѰÕÒÓë¸ø¶¨µÄÕýÔò±í´ïʽ <parameter>pattern</parameter> ËùÆ¥ÅäµÄ×Ó´®¡£ - </simpara> - <simpara> - Èç¹ûÕÒµ½Óë <parameter>pattern</parameter> - ÖÐÔ²À¨ºÅÄÚµÄ×ÓģʽÏàÆ¥ÅäµÄ×Ó´®²¢ÇÒº¯Êýµ÷Óøø³öÁ˵ÚÈý¸ö²ÎÊý - <parameter>regs</parameter>£¬ÔòÆ¥ÅäÏ±»´æÈë - <parameter>regs</parameter> Êý×éÖС£$regs[1] - °üº¬µÚÒ»¸ö×óÔ²À¨ºÅ¿ªÊ¼µÄ×Ó´®£¬$regs[2] - °üº¬µÚ¶þ¸ö×Ó´®£¬ÒÔ´ËÀàÍÆ¡£$regs[0] °üº¬Õû¸öÆ¥ÅäµÄ×Ö·û´®¡£ - </simpara> - <note> - <simpara> - Ö±µ½ PHP 4.1.0 Ϊֹ£¬<varname>$regs</varname> - ½«±»Ìî³äΪÕýºÃÊ®¸öµ¥Ôª£¬¼´Ê¹Êµ¼ÊÆ¥ÅäµÄ×Ó´®ÉÙÓÚÊ®¸ö¡£Õâ²¢²»Ó°Ïì - <function>ereg</function> Æ¥Åä¸ü¶à×Ó´®µÄÄÜÁ¦¡£Èç¹ûûÓÐÕÒµ½Æ¥Å䣬Ôò - <literal>$regs</literal> ²»»á±» <function>ereg</function> ¸ü¸Ä¡£ - </simpara> - </note> - <simpara> - Èç¹ûÔÚ <parameter>string</parameter> - ÖÐÕÒµ½ <parameter>pattern</parameter> ģʽµÄÆ¥ÅäÔò·µ»Ø - &true;£¬Èç¹ûûÓÐÕÒµ½Æ¥Åä»ò³ö´íÔò·µ»Ø &false;¡£ - </simpara> - <para> - ÒÔÏ´úÂëÆ¬¶Ï½ÓÊÜ ISO ¸ñʽµÄÈÕÆÚ£¨YYYY-MM-DD£©È»ºóÒÔ - DD.MM.YYYY ¸ñʽÏÔʾ£º - </para> - <para> - <example> - <title><function>ereg</function> Àý×Ó</title> - <programlisting role="php"> +<!-- EN-Revision: 1.12 Maintainer: dallas Status: ready --> +<refentry id="function.ereg"> + <refnamediv> + <refname>ereg</refname> + <refpurpose>ÕýÔò±í´ïʽƥÅä</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</type><methodname>ereg</methodname> + <methodparam><type>string</type><parameter>pattern</parameter></methodparam> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">regs</parameter></methodparam> + </methodsynopsis> + <note> + <para> + ʹÓà Perl ¼æÈÝÕýÔò±í´ïʽÓï·¨µÄ <function>preg_match</function> + º¯Êýͨ³£ÊÇ±È <function>ereg</function> ¸ü¿ìµÄÌæ´ú·½°¸¡£ + </para> + </note> + <simpara> + ÒÔÇø·Ö´óСдµÄ·½Ê½ÔÚ <parameter>string</parameter> + ÖÐѰÕÒÓë¸ø¶¨µÄÕýÔò±í´ïʽ <parameter>pattern</parameter> ËùÆ¥ÅäµÄ×Ó´®¡£ + </simpara> + <simpara> + Èç¹ûÕÒµ½Óë <parameter>pattern</parameter> + ÖÐÔ²À¨ºÅÄÚµÄ×ÓģʽÏàÆ¥ÅäµÄ×Ó´®²¢ÇÒº¯Êýµ÷Óøø³öÁ˵ÚÈý¸ö²ÎÊý + <parameter>regs</parameter>£¬ÔòÆ¥ÅäÏ±»´æÈë + <parameter>regs</parameter> Êý×éÖС£$regs[1] + °üº¬µÚÒ»¸ö×óÔ²À¨ºÅ¿ªÊ¼µÄ×Ó´®£¬$regs[2] + °üº¬µÚ¶þ¸ö×Ó´®£¬ÒÔ´ËÀàÍÆ¡£$regs[0] °üº¬Õû¸öÆ¥ÅäµÄ×Ö·û´®¡£ + </simpara> + <note> + <simpara> + Ö±µ½ PHP 4.1.0 Ϊֹ£¬<varname>$regs</varname> + ½«±»Ìî³äΪÕýºÃÊ®¸öµ¥Ôª£¬¼´Ê¹Êµ¼ÊÆ¥ÅäµÄ×Ó´®ÉÙÓÚÊ®¸ö¡£Õâ²¢²»Ó°Ïì + <function>ereg</function> Æ¥Åä¸ü¶à×Ó´®µÄÄÜÁ¦¡£Èç¹ûûÓÐÕÒµ½Æ¥Å䣬Ôò + <literal>$regs</literal> ²»»á±» <function>ereg</function> ¸ü¸Ä¡£ + </simpara> + </note> + <simpara> + Èç¹ûÔÚ <parameter>string</parameter> + ÖÐÕÒµ½ <parameter>pattern</parameter> ģʽµÄÆ¥ÅäÔò·µ»Ø + ËùÆ¥Åä×Ö·û´®µÄ³¤¶È£¬Èç¹ûûÓÐÕÒµ½Æ¥Åä»ò³ö´íÔò·µ»Ø &false;¡£Èç¹ûûÓд«µÝÈë¿ÉÑ¡²ÎÊý + <parameter>regs</parameter> »òÕßËùÆ¥ÅäµÄ×Ö·û´®³¤¶ÈΪ 0£¬Ôò±¾º¯Êý·µ»Ø 1¡£ + </simpara> + <para> + ÒÔÏ´úÂëÆ¬¶Ï½ÓÊÜ ISO ¸ñʽµÄÈÕÆÚ£¨YYYY-MM-DD£©È»ºóÒÔ + DD.MM.YYYY ¸ñʽÏÔʾ£º + </para> + <para> + <example> + <title><function>ereg</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) { @@ -63,15 +64,15 @@ } ?> ]]> - </programlisting> - </example> - </para> - <para> - ²Î¼û <function>eregi</function>£¬<function>ereg_replace</function>£¬<function>eregi_replace</function>£¬<function>preg_match</function>£¬<function>strpos</function> - ºÍ <function>strstr</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <para> + ²Î¼û <function>eregi</function>£¬<function>ereg_replace</function>£¬<function>eregi_replace</function>£¬<function>preg_match</function>£¬<function>strpos</function> + ºÍ <function>strstr</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/regex/functions/eregi-replace.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/regex/functions/eregi-replace.xml diff -u phpdoc-zh/reference/regex/functions/eregi-replace.xml:1.1 phpdoc-zh/reference/regex/functions/eregi-replace.xml:1.2 --- phpdoc-zh/reference/regex/functions/eregi-replace.xml:1.1 Sun Sep 21 19:53:28 2003 +++ phpdoc-zh/reference/regex/functions/eregi-replace.xml Thu Feb 9 04:08:01 2006 @@ -1,30 +1,44 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> - <refentry id="function.eregi-replace"> - <refnamediv> - <refname>eregi_replace</refname> - <refpurpose>²»Çø·Ö´óÐ¡Ð´Ìæ»»ÕýÔò±í´ïʽ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>eregi_replace</methodname> - <methodparam><type>string</type><parameter>pattern</parameter></methodparam> - <methodparam><type>string</type><parameter>replacement</parameter></methodparam> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - </methodsynopsis> - <para> - ±¾º¯ÊýºÍ <function>ereg_replace</function> - ÍêÈ«Ïàͬ£¬Ö»³ýÁËÔÚÆ¥Åä×Öĸ×Ö·ûʱºöÂÔ´óСдµÄÇø±ð¡£ - </para> - <para> - ²Î¼û <function>ereg</function>£¬<function>eregi</function> - ºÍ <function>ereg_replace</function>¡£ - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<refentry id="function.eregi-replace"> + <refnamediv> + <refname>eregi_replace</refname> + <refpurpose>²»Çø·Ö´óСдµÄÕýÔò±í´ïÊ½Ìæ»»</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>eregi_replace</methodname> + <methodparam><type>string</type><parameter>pattern</parameter></methodparam> + <methodparam><type>string</type><parameter>replacement</parameter></methodparam> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + </methodsynopsis> + <para> + ±¾º¯ÊýºÍ <function>ereg_replace</function> + ÍêÈ«Ïàͬ£¬Ö»³ýÁËÔÚÆ¥Åä×Öĸ×Ö·ûʱºöÂÔ´óСдµÄÇø±ð¡£ + </para> + <para> + <example> + <title>¸ßÁÁËÑË÷½á¹û</title> + <programlisting role="php"> +<![CDATA[ +<?php +$pattern = '(>[^<]*)('. quotemeta($_GET['search']) .')'; +$replacement = '\\1<span class="search">\\2</span>'; +$body = eregi_replace($pattern, $replacement, $body); +?> +]]> + </programlisting> + </example> + </para> + <para> + ²Î¼û <function>ereg</function>£¬<function>eregi</function> + ºÍ <function>ereg_replace</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/regex/functions/eregi.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/regex/functions/eregi.xml diff -u phpdoc-zh/reference/regex/functions/eregi.xml:1.1 phpdoc-zh/reference/regex/functions/eregi.xml:1.2 --- phpdoc-zh/reference/regex/functions/eregi.xml:1.1 Mon Sep 15 19:22:08 2003 +++ phpdoc-zh/reference/regex/functions/eregi.xml Thu Feb 9 04:08:01 2006 @@ -1,44 +1,45 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> - <refentry id="function.eregi"> - <refnamediv> - <refname>eregi</refname> - <refpurpose>²»Çø·Ö´óСдµÄÕýÔò±í´ïʽƥÅä</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>eregi</methodname> - <methodparam><type>string</type><parameter>pattern</parameter></methodparam> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>regs</parameter></methodparam> - </methodsynopsis> - <para> - ±¾º¯ÊýºÍ <function>ereg</function> - ÍêÈ«Ïàͬ£¬Ö»³ýÁËÔÚÆ¥Åä×Öĸ×Ö·ûʱºöÂÔ´óСдµÄÇø±ð¡£ - </para> - <para> - <example> - <title><function>eregi</function> Àý×Ó</title> - <programlisting role="php"> +<!-- EN-Revision: 1.9 Maintainer: dallas Status: ready --> +<refentry id="function.eregi"> + <refnamediv> + <refname>eregi</refname> + <refpurpose>²»Çø·Ö´óСдµÄÕýÔò±í´ïʽƥÅä</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</type><methodname>eregi</methodname> + <methodparam><type>string</type><parameter>pattern</parameter></methodparam> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">regs</parameter></methodparam> + </methodsynopsis> + <para> + ±¾º¯ÊýºÍ <function>ereg</function> + ÍêÈ«Ïàͬ£¬Ö»³ýÁËÔÚÆ¥Åä×Öĸ×Ö·ûʱºöÂÔ´óСдµÄÇø±ð¡£ + </para> + <para> + <example> + <title><function>eregi</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php -if (eregi("z", $string)) { +$string = 'XYZ'; + if (eregi('z', $string)) { echo "'$string' contains a 'z' or 'Z'!"; } ?> ]]> - </programlisting> - </example> - </para> - <para> - ²Î¼û <function>ereg</function>£¬<function>ereg_replace</function>£¬<function>eregi_replace</function>£¬<function>stripos</function> - ºÍ <function>stristr</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <para> + ²Î¼û <function>ereg</function>£¬<function>ereg_replace</function>£¬<function>eregi_replace</function>£¬<function>stripos</function> + ºÍ <function>stristr</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/regex/functions/split.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/regex/functions/split.xml diff -u phpdoc-zh/reference/regex/functions/split.xml:1.1 phpdoc-zh/reference/regex/functions/split.xml:1.2 --- phpdoc-zh/reference/regex/functions/split.xml:1.1 Sun Sep 21 19:53:28 2003 +++ phpdoc-zh/reference/regex/functions/split.xml Thu Feb 9 04:08:01 2006 @@ -1,67 +1,67 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> - <refentry id="function.split"> - <refnamediv> - <refname>split</refname> - <refpurpose>ÓÃÕýÔò±í´ïʽ½«×Ö·û´®·Ö¸îµ½Êý×éÖÐ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>array</type><methodname>split</methodname> - <methodparam><type>string</type><parameter>pattern</parameter></methodparam> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> - </methodsynopsis> - <tip> - <para> - <function>preg_split</function> º¯ÊýʹÓÃÁË - Perl ¼æÈÝÕýÔò±í´ïʽÓï·¨£¬Í¨³£ÊÇ±È - <function>split</function> ¸ü¿ìµÄÌæ´ú·½°¸¡£Èç¹û²»ÐèÒªÕýÔò±í´ïʽµÄÍþÁ¦£¬ÔòʹÓà - <function>explode</function> ¸ü¿ì£¬ÕâÑù¾Í²»»áÕÐÖÂÕýÔò±í´ïʽÒýÇæµÄÀË·Ñ¡£ - </para> - </tip> - <para> - ±¾º¯Êý·µ»ØÒ»¸ö×Ö·û´®Êý×飬ÿ¸öµ¥ÔªÎª - <parameter>string</parameter> ¾­Çø·Ö´óСдµÄÕýÔò±í´ïʽ - <parameter>pattern</parameter> ×÷Ϊ±ß½ç·Ö¸î³öµÄ×Ó´®¡£Èç¹ûÉ趨ÁË - <parameter>limit</parameter>£¬Ôò·µ»ØµÄÊý×é×î¶à°üº¬ - <parameter>limit</parameter> ¸öµ¥Ôª£¬¶øÆäÖÐ×îºóÒ»¸öµ¥Ôª°üº¬ÁË - <parameter>string</parameter> ÖÐÊ£ÓàµÄËùÓв¿·Ö¡£Èç¹û³ö´í£¬Ôò - <function>split</function> ·µ»Ø &false;¡£ - </para> - <para> - ½« <filename>/etc/passwd</filename> ÖеÄǰËĸö×ֶηָî³öÀ´£º - </para> - <para> - <example> - <title><function>split</function> Àý×Ó</title> - <programlisting role="php"> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<refentry id="function.split"> + <refnamediv> + <refname>split</refname> + <refpurpose>ÓÃÕýÔò±í´ïʽ½«×Ö·û´®·Ö¸îµ½Êý×éÖÐ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>split</methodname> + <methodparam><type>string</type><parameter>pattern</parameter></methodparam> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> + </methodsynopsis> + <tip> + <para> + <function>preg_split</function> º¯ÊýʹÓÃÁË + Perl ¼æÈÝÕýÔò±í´ïʽÓï·¨£¬Í¨³£ÊÇ±È + <function>split</function> ¸ü¿ìµÄÌæ´ú·½°¸¡£Èç¹û²»ÐèÒªÕýÔò±í´ïʽµÄÍþÁ¦£¬ÔòʹÓà + <function>explode</function> ¸ü¿ì£¬ÕâÑù¾Í²»»áÕÐÖÂÕýÔò±í´ïʽÒýÇæµÄÀË·Ñ¡£ + </para> + </tip> + <para> + ±¾º¯Êý·µ»ØÒ»¸ö×Ö·û´®Êý×飬ÿ¸öµ¥ÔªÎª + <parameter>string</parameter> ¾­Çø·Ö´óСдµÄÕýÔò±í´ïʽ + <parameter>pattern</parameter> ×÷Ϊ±ß½ç·Ö¸î³öµÄ×Ó´®¡£Èç¹ûÉ趨ÁË + <parameter>limit</parameter>£¬Ôò·µ»ØµÄÊý×é×î¶à°üº¬ + <parameter>limit</parameter> ¸öµ¥Ôª£¬¶øÆäÖÐ×îºóÒ»¸öµ¥Ôª°üº¬ÁË + <parameter>string</parameter> ÖÐÊ£ÓàµÄËùÓв¿·Ö¡£Èç¹û³ö´í£¬Ôò + <function>split</function> ·µ»Ø &false;¡£ + </para> + <para> + ½« <filename>/etc/passwd</filename> ÖеÄǰËĸö×ֶηָî³öÀ´£º + </para> + <para> + <example> + <title><function>split</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php list($user, $pass, $uid, $gid, $extra) = split (":", $passwd_line, 5); ?> ]]> - </programlisting> - </example> - </para> - <simpara> - Èç¹û×Ö·û´®ÖÐÓÐ <replaceable>n</replaceable> ¸öÓë - <parameter>pattern</parameter> Æ¥ÅäµÄÏîÄ¿£¬Ôò·µ»ØµÄÊý×齫°üº¬ - <literal><replaceable>n</replaceable>+1</literal> ¸öµ¥Ôª¡£ÀýÈ磬Èç¹ûûÓÐÕÒµ½ - <parameter>pattern</parameter>£¬Ôò»á·µ»ØÒ»¸öÖ»ÓÐÒ»¸öµ¥ÔªµÄÊý×é¡£µ±È»£¬Èç¹û - <parameter>string</parameter> Ϊ¿ÕÒ²ÊÇÕâÑù¡£ - </simpara> - <para> - ½âÎö¿ÉÄÜÓÃбÏߣ¬µã£¬»òºáÏß·Ö¸îµÄÈÕÆÚ£º - </para> - <para> - <example> - <title><function>split</function> Àý×Ó</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <simpara> + Èç¹û×Ö·û´®ÖÐÓÐ <replaceable>n</replaceable> ¸öÓë + <parameter>pattern</parameter> Æ¥ÅäµÄÏîÄ¿£¬Ôò·µ»ØµÄÊý×齫°üº¬ + <literal><replaceable>n</replaceable>+1</literal> ¸öµ¥Ôª¡£ÀýÈ磬Èç¹ûûÓÐÕÒµ½ + <parameter>pattern</parameter>£¬Ôò»á·µ»ØÒ»¸öÖ»ÓÐÒ»¸öµ¥ÔªµÄÊý×é¡£µ±È»£¬Èç¹û + <parameter>string</parameter> Ϊ¿ÕÒ²ÊÇÕâÑù¡£ + </simpara> + <para> + ½âÎö¿ÉÄÜÓÃбÏߣ¬µã£¬»òºáÏß·Ö¸îµÄÈÕÆÚ£º + </para> + <para> + <example> + <title><function>split</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php // ·Ö¸ô·û¿ÉÒÔÊÇбÏߣ¬µã£¬»òºáÏß @@ -70,32 +70,28 @@ echo "Month: $month; Day: $day; Year: $year<br />\n"; ?> ]]> - </programlisting> - </example> - </para> - - <para> - Ïë·ÂЧ Perl ÖÐÀàËÆµÄ <command>@chars = - split('', $str)</command> ÐÐΪ£¬Çë²Î¿¼ - <function>preg_split</function> º¯ÊýÖеÄÀý×Ó¡£ - </para> - - <para> - ×¢Òâ <parameter>pattern</parameter> - ÊÇÒ»¸öÕýÔò±í´ïʽ¡£Èç¹ûÏëÒªÓõķָî×Ö·ûÊÇÕýÔò±í´ïʽÖеÄÌØÊâ×Ö·û£¬ÒªÏȽ«ÆäתÒå¡£Èç¹û¾õµÃ - <function>split</function>£¨»òÆäËüÈκΠregex º¯Êý£©ÐÐΪ¹Å¹ÖµÄ»°£¬ÇëÔĶÁ°üº¬ÔÚ - PHP ·¢ÐаüÖÐ <filename>regex/</filename> ×ÓĿ¼Ï嵀 - <filename>regex.7</filename> Îļþ¡£¸ÃÎļþÊÇÊÖ²áÒ³Ãæ¸ñʽ£¬¿ÉÒÔÓÃÀàËÆ - <command>man /usr/local/src/regex/regex.7</command> µÄÃüÁîÀ´ÔĶÁ¡£ - </para> - - <para> - ²Î¼û <function>preg_split</function>£¬<function>spliti</function>£¬<function>explode</function>£¬<function>implode</function>£¬<function>chunk_split</function> - ºÍ <function>wordwrap</function>¡£ - </para> - - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <para> + Ïë·ÂЧ Perl ÖÐÀàËÆµÄ <command>@chars = + split('', $str)</command> ÐÐΪ£¬Çë²Î¿¼ + <function>preg_split</function> »ò <function>str_split</function> º¯ÊýÖеÄÀý×Ó¡£ + </para> + <para> + ×¢Òâ <parameter>pattern</parameter> + ÊÇÒ»¸öÕýÔò±í´ïʽ¡£Èç¹ûÏëÒªÓõķָî×Ö·ûÊÇÕýÔò±í´ïʽÖеÄÌØÊâ×Ö·û£¬ÒªÏȽ«ÆäתÒå¡£Èç¹û¾õµÃ + <function>split</function>£¨»òÆäËüÈκΠregex º¯Êý£©ÐÐΪ¹Å¹ÖµÄ»°£¬ÇëÔĶÁ°üº¬ÔÚ + PHP ·¢ÐаüÖÐ <filename>regex/</filename> ×ÓĿ¼Ï嵀 + <filename>regex.7</filename> Îļþ¡£¸ÃÎļþÊÇÊÖ²áÒ³Ãæ¸ñʽ£¬¿ÉÒÔÓÃÀàËÆ + <command>man /usr/local/src/regex/regex.7</command> µÄÃüÁîÀ´ÔĶÁ¡£ + </para> + <para> + ²Î¼û <function>preg_split</function>£¬<function>spliti</function>£¬<function>str_split</function>£¬<function>explode</function>£¬<function>implode</function>£¬<function>chunk_split</function> + ºÍ <function>wordwrap</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/regex/functions/spliti.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/regex/functions/spliti.xml diff -u phpdoc-zh/reference/regex/functions/spliti.xml:1.1 phpdoc-zh/reference/regex/functions/spliti.xml:1.2 --- phpdoc-zh/reference/regex/functions/spliti.xml:1.1 Wed Sep 10 02:09:24 2003 +++ phpdoc-zh/reference/regex/functions/spliti.xml Thu Feb 9 04:08:01 2006 @@ -1,31 +1,57 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> - <refentry id="function.spliti"> - <refnamediv> - <refname>spliti</refname> - <refpurpose> - ÓÃÕýÔò±í´ïʽ²»Çø·Ö´óСд½«×Ö·û´®·Ö¸îµ½Êý×éÖÐ - </refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>array</type><methodname>spliti</methodname> - <methodparam><type>string</type><parameter>pattern</parameter></methodparam> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> - </methodsynopsis> - <para> - ±¾º¯ÊýºÍ <function>split</function> Ïàͬ£¬Ö»³ýÁËÔÚÆ¥Åä×Öĸ×Ö·ûʱºöÂÔ´óСдµÄÇø±ð¡£ - </para> - <para> - ²Î¼û <function>preg_spliti</function>£¬<function>split</function>£¬<function>explode</function> - ºÍ <function>implode</function>¡£ - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<refentry id="function.spliti"> + <refnamediv> + <refname>spliti</refname> + <refpurpose>ÓÃÕýÔò±í´ïʽ²»Çø·Ö´óСд½«×Ö·û´®·Ö¸îµ½Êý×éÖÐ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>spliti</methodname> + <methodparam><type>string</type><parameter>pattern</parameter></methodparam> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> + </methodsynopsis> + <para> + ±¾º¯ÊýºÍ <function>split</function> Ïàͬ£¬Ö»³ýÁËÔÚÆ¥Åä×Öĸ×Ö·ûʱºöÂÔ´óСдµÄÇø±ð¡£ + </para> + <para> + ±¾ÀýÓà 'a' ×ö·Ö¸ô·ûÀ´·Ö¸îÒ»¸ö×Ö·û´®£º + <example> + <title><function>spliti</function> Àý×Ó</title> + <programlisting role="php"> +<![CDATA[ +<?php +$string = "aBBBaCCCADDDaEEEaGGGA"; +$chunks = spliti ("a", $string, 5); +print_r($chunks); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Array +( + [0] => + [1] => BBB + [2] => CCC + [3] => DDD + [4] => EEEaGGGA +) +]]> + </screen> + </example> + </para> + <para> + ²Î¼û <function>preg_spliti</function>£¬<function>split</function>£¬<function>explode</function> + ºÍ <function>implode</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/regex/functions/sql-regcase.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-zh/reference/regex/functions/sql-regcase.xml diff -u phpdoc-zh/reference/regex/functions/sql-regcase.xml:1.1 phpdoc-zh/reference/regex/functions/sql-regcase.xml:1.2 --- phpdoc-zh/reference/regex/functions/sql-regcase.xml:1.1 Sun Sep 21 19:53:28 2003 +++ phpdoc-zh/reference/regex/functions/sql-regcase.xml Thu Feb 9 04:08:01 2006 @@ -1,47 +1,47 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> - <refentry id="function.sql-regcase"> - <refnamediv> - <refname>sql_regcase</refname> - <refpurpose> - ²úÉúÓÃÓÚ²»Çø·Ö´óСµÄÆ¥ÅäµÄÕýÔò±í´ïʽ - </refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>sql_regcase</methodname> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - </methodsynopsis> - <para> - ·µ»ØÓë <parameter>string</parameter> - ÏàÆ¥ÅäµÄÕýÔò±í´ïʽ£¬²»ÂÛ´óСд×Öĸ¡£·µ»ØµÄ±í´ïʽÊǽ« - <parameter>string</parameter> - ÖеÄÿ¸ö×Öĸ×Ö·ûת»»Îª·½À¨ºÅ±í´ïʽ£¬¸Ã·½À¨ºÅ±í´ïʽ°üº¬Á˸Ã×ÖĸµÄ´óСдÐÎʽ¡£ÆäËü×Ö·û±£Áô²»±ä¡£ - </para> - <para> - <example> - <title><function>sql_regcase</function> Àý×Ó</title> - <programlisting role="php"> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<refentry id="function.sql-regcase"> + <refnamediv> + <refname>sql_regcase</refname> + <refpurpose>²úÉúÓÃÓÚ²»Çø·Ö´óСµÄÆ¥ÅäµÄÕýÔò±í´ïʽ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>sql_regcase</methodname> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + </methodsynopsis> + <para> + ·µ»ØÓë <parameter>string</parameter> + ÏàÆ¥ÅäµÄÕýÔò±í´ïʽ£¬²»ÂÛ´óСд×Öĸ¡£·µ»ØµÄ±í´ïʽÊǽ« + <parameter>string</parameter> + ÖеÄÿ¸ö×Öĸ×Ö·ûת»»Îª·½À¨ºÅ±í´ïʽ£¬¸Ã·½À¨ºÅ±í´ïʽ°üº¬Á˸Ã×ÖĸµÄ´óСдÐÎʽ¡£ÆäËü×Ö·û±£Áô²»±ä¡£ + </para> + <para> + <example> + <title><function>sql_regcase</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php echo sql_regcase ("Foo - bar."); ?> ]]> - </programlisting> - <para> - Êä³öΪ£º - </para> - <screen>[Ff][Oo][Oo] - [Bb][Aa][Rr].</screen> - </example> - </para> - <para> - ¿ÉÒÔÓÃÓÚÔÚ½öÖ§³ÖÇø·Ö´óСдÕýÔò±í´ïʽµÄ²úÆ·ÖÐÍê³É²»Çø·Ö´óСдµÄģʽƥÅä¡£ - </para> - </refsect1> - </refentry> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +[Ff][Oo][Oo] - [Bb][Aa][Rr]. +]]> + </screen> + </example> + </para> + <para> + ¿ÉÒÔÓÃÓÚÔÚ½öÖ§³ÖÇø·Ö´óСдÕýÔò±í´ïʽµÄ²úÆ·ÖÐÍê³É²»Çø·Ö´óСдµÄģʽƥÅä¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/session/ini.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-zh/reference/session/ini.xml diff -u phpdoc-zh/reference/session/ini.xml:1.3 phpdoc-zh/reference/session/ini.xml:1.4 --- phpdoc-zh/reference/session/ini.xml:1.3 Sat Jan 21 04:43:32 2006 +++ phpdoc-zh/reference/session/ini.xml Thu Feb 9 04:08:01 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.39 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.40 Maintainer: dallas Status: ready --> <section id="session.configuration"> &reftitle.runtime; &extension.runtime; @@ -401,8 +401,7 @@ <listitem> <simpara> <literal>session.use_only_cookies</literal> Ö¸¶¨ÊÇ·ñÔÚ¿Í»§¶Ë<emphasis - role="strong">½ö½ö</emphasis>ʹÓà cookie À´´æ·Å»á»° ID¡£Ä¬ÈÏΪ - <literal>0</literal>£¨½ûÓã¬ÎªÏòºó¼æÈÝ£©¡£ÆôÓôËÉ趨¿ÉÒÔ·ÀÖ¹ÓйØÍ¨¹ý + role="strong">½ö½ö</emphasis>ʹÓà cookie À´´æ·Å»á»° ID¡£¡£ÆôÓôËÉ趨¿ÉÒÔ·ÀÖ¹ÓйØÍ¨¹ý URL ´«µÝ»á»° ID µÄ¹¥»÷¡£´ËÉ趨ÊÇ PHP 4.3.0 Ìí¼ÓµÄ¡£ </simpara> </listitem>
« previous php.doc.zh (#2779) next »