danbeck Thu Feb 22 07:28:36 2001 EDT
Modified files:
/phpdoc/en/functions pcre.xml
Log:
clarified preg_replace return value
Index: phpdoc/en/functions/pcre.xml
diff -u phpdoc/en/functions/pcre.xml:1.42 phpdoc/en/functions/pcre.xml:1.43
--- phpdoc/en/functions/pcre.xml:1.42 Tue Feb 20 14:13:07 2001
+++ phpdoc/en/functions/pcre.xml Thu Feb 22 07:28:36 2001
@@ -316,7 +316,7 @@
<para>
Searches <parameter>subject</parameter> for matches to
<parameter> pattern</parameter> and replaces them with
- <parameter>replacement </parameter>. If
+ <parameter>replacement</parameter>. If
<parameter>limit</parameter> is specified, then only
<parameter>limit</parameter> matches will be replaced; if
<parameter>limit</parameter> is omitted or is -1, then all
@@ -334,8 +334,9 @@
(starting from 1) to obtain the number of the capturing subpattern.
</para>
<para>
- If no matches are found in <parameter>subject</parameter>, then
- it will be returned unchanged.
+ If matches are found, the new <parameter>subject</parameter> will
+ be returned, otherwise <parameter>subject</parameter> will be
+ returned unchanged.
</para>
<para>
Every parameter to <function>preg_replace</function> can be an
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Andrei Zmievski
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Andrei Zmievski
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Andrei Zmievski
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Andrei Zmievski
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Egon Schmid
- Re: [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Daniel Beckham
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Torben Wilson
- [PHP-DOC] Representing classes in PHP doc Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Andrei Zmievski
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Andrei Zmievski
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Hojtsy Gabor
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Gabor Hojtsy
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml jim winstead
- [PHP-DOC] cvs: phpdoc /en/functions pcre.xml Kenneth Schwartz
