cvs: phpdoc-zh /reference/pgsql configure.xml /reference/regex configure.xml reference.xml /reference/regex/functions spliti.xml

From: Date: Wed, 10 Sep 2003 02:09:24 +0000
Subject: cvs: phpdoc-zh /reference/pgsql configure.xml /reference/regex configure.xml reference.xml /reference/regex/functions spliti.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1737@lists.php.net to get a copy of this message
dallas Tue Sep 9 22:09:24 2003 EDT Added files: /phpdoc-zh/reference/regex configure.xml reference.xml /phpdoc-zh/reference/regex/functions spliti.xml Modified files: /phpdoc-zh/reference/pgsql configure.xml Log: Add regexp functions. Index: phpdoc-zh/reference/pgsql/configure.xml diff -u phpdoc-zh/reference/pgsql/configure.xml:1.1 phpdoc-zh/reference/pgsql/configure.xml:1.2 --- phpdoc-zh/reference/pgsql/configure.xml:1.1 Sat Dec 28 04:18:51 2002 +++ phpdoc-zh/reference/pgsql/configure.xml Tue Sep 9 22:09:23 2003 @@ -1,14 +1,18 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: gregory $ --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.1 Maintainer: dallas Status: ready --> <!-- CREDITS: Gregory --> - <section id="pgsql.installation"> - &reftitle.install; - <para> - ΪÌí¼Ó PostgreSQL Ö§³Ö£¬ÔÚ±àÒë PHP ʱÐèÒª <option role="configure">--with-pgsql[=DIR]</option> Ñ¡Ïî¡£Èç¹û¿ÉÒÔÓù²ÏíÄ£¿é·½Ê½£¬PostgreSQL Ä£¿é¿ÉÒÔÔÚ &php.ini; Óà <link linkend="ini.extension">extension</link> Ö¸Áî»òÕß <function>dl</function> º¯Êý¼ÓÔØ¡£ - </para> - </section> +<section id="pgsql.installation"> + &reftitle.install; + <para> + ΪÌí¼Ó PostgreSQL Ö§³Ö£¬ÔÚ±àÒë PHP ʱÐèÒª¼ÓÉÏ + <option role="configure">--with-pgsql[=DIR]</option> + Ñ¡Ïî¡£Èç¹û¿ÉÒÔÓù²ÏíÄ£¿é·½Ê½£¬PostgreSQL Ä£¿é¿ÉÒÔÔÚ + &php.ini; Óà <link linkend="ini.extension">extension</link> + Ö¸Áî»òÕß <function>dl</function> º¯Êý¼ÓÔØ¡£ + </para> +</section> <!-- Keep this comment at the end of the file Local variables: Index: phpdoc-zh/reference/regex/configure.xml +++ phpdoc-zh/reference/regex/configure.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <section id="regex.installation"> &reftitle.install; <warning> <simpara> ³ý·ÇÖªµÀ×Ô¼ºÔÚ×öʲô£¬·ñÔò²»Òª¸Ä±ä TYPE¡£ </simpara> </warning> <para> Òª¼¤»î regexp µÄÖ§³ÖÔÚÅäÖà PHP ʱ¼ÓÉÏ <option role="configure">--with-regex[=TYPE]</option>¡£TYPE ¿ÉÒÔÊÇ system£¬apache »ò php Ö®Ò»¡£Ä¬ÈÏʹÓà php¡£ </para> &windows.builtin; </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/regex/reference.xml +++ phpdoc-zh/reference/regex/reference.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> <reference id="ref.regex"> <title>ÕýÔò±í´ïʽº¯Êý¿â£¨POSIX À©Õ¹£©</title> <titleabbrev>Regexps</titleabbrev> <partintro> <section id="regex.intro"> &reftitle.intro; <tip> <para> PHP Ò²Ö§³ÖʹÓà Perl ¼æÈÝÓï·¨µÄ <link linkend="ref.pcre">PCRE º¯Êý¿â</link>£¬Ö§³Ö non-greedy Æ¥Å䣬¶ÏÑÔ£¬Ìõ¼þ×ÓģʽÒÔ¼°ÆäËüÐí¶à POSIX À©Õ¹ÕýÔò±í´ïʽÓï·¨Ëù²»Ö§³ÖµÄÌØÐÔ¡£ </para> </tip> <warning> <para> ±¾ÀàÕýÔò±í´ïʽ²¢²»Äܰ²È«ÓÃÓÚ¶þ½øÖÆÄ£Ê½¡£<link linkend="ref.pcre">PCRE º¯Êý¿â</link>Ôò¿ÉÒÔ¡£ </para> </warning> <para> ÕýÔò±í´ïʽÔÚ PHP ÖÐÓÃÀ´×ö¸´ÔÓµÄ×Ö·û´®²Ù×÷¡£Ö§³ÖÕýÔò±í´ïʽµÄº¯ÊýΪ£º <itemizedlist> <listitem> <simpara><function>ereg</function></simpara> </listitem> <listitem> <simpara><function>ereg_replace</function></simpara> </listitem> <listitem> <simpara><function>eregi</function></simpara> </listitem> <listitem> <simpara><function>eregi_replace</function></simpara> </listitem> <listitem> <simpara><function>split</function></simpara> </listitem> <listitem> <simpara><function>spliti</function></simpara> </listitem> </itemizedlist> </para> <para> ÕâЩº¯Êý¶¼½ÓÊÜÒ»¸öÕýÔò±í´ïʽ×Ö·û´®×÷ΪÆäµÚÒ»¸ö²ÎÊý¡£PHP ʹÓÃÓÉ POSIX 1003.3 ¶¨ÒåµÄ POSIX À©Õ¹ÕýÔò±í´ïʽ¡£POSIX ÕýÔò±í´ïʽÍêÕûµÄÃèÊö¼û°üº¬ÔÚ PHP ·¢ÐаüÖÐ regex Ŀ¼Ï嵀 man Ò³Ãæ¡£¿ÉÒÔͨ¹ýÀàËÆ <command>man /usr/local/src/regex/regex.7</command> µÄÃüÁîÀ´ÔĶÁ¡£ </para> </section> <section id="regex.requirements"> &reftitle.required; &no.requirement; </section> &reference.regex.configure; <section id="regex.configuration"> &reftitle.runtime; &no.config; </section> <section id="regex.resources"> &reftitle.resources; &no.resource; </section> <section id="regex.constants"> &reftitle.constants; &no.constants; </section> <section id="regex.examples"> &reftitle.examples; <para> <example> <title>ÕýÔò±í´ïʽÀý×Ó</title> <programlisting role="php"> <![CDATA[ <?php // Èç¹ûÔÚ $string ÖÐÈκεط½ÕÒµ½ "abc" Ôò·µ»Ø &true; ereg ("abc", $string); // Èç¹û $string ÒÔ "abc" ¿ªÍ·Ôò·µ»Ø &true; ereg ("^abc", $string); // Èç¹û $string ÒÔ "abc" ½áβÔò·µ»Ø &true; ereg ("abc$", $string); // Èç¹ûÓû§ä¯ÀÀÆ÷ÊÇ Netscape 2£¬3 »ò MSIE 3 Ôò·µ»Ø &true; eregi ("(ozilla.[23]|MSIE.3)", $HTTP_USER_AGENT); // ½«Èý¸ö¿Õ¸ñ·Ö¸ôµÄµ¥´Ê·ÅÈë $regs[1]£¬$regs[2] ºÍ $regs[3] ÖÐ ereg ("([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+)", $string,$regs); // ½« <br /> ±ê¼Ç·Åµ½ $string ¿ªÍ· $string = ereg_replace ("^", "<br />", $string); // ½« <br /> ±ê¼Ç·Åµ½ $string ½áβ $string = ereg_replace ("$", "<br />", $string); // ɾ³ý $string ÖеÄËùÓл»Ðзû $string = ereg_replace ("\n", "", $string); ?> ]]> </programlisting> </example> </para> </section> <section id="regex.seealso"> &reftitle.seealso; <para> Perl ¼æÈÝÓï·¨µÄÕýÔò±í´ïʽ¼û <link linkend="ref.pcre">PCRE º¯Êý¿â</link>¡£¼òµ¥µÄÃüÁîÐнâÊÍÆ÷·ç¸ñµÄͨÅä·ûÆ¥ÅäÓÉ <function>fnmatch</function> Ìṩ¡£ </para> </section> </partintro> &reference.regex.functions; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/regex/functions/spliti.xml +++ phpdoc-zh/reference/regex/functions/spliti.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $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> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.doc.zh (#1737) next »