clarified preg_replace return value

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@41738 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Beckham 2001-02-22 15:28:36 +00:00
parent bc5d5cdf1e
commit 31acaae81c

View file

@ -316,7 +316,7 @@ part 3: </a>
<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 @@ part 3: &lt;/a&gt;
(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