mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
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:
parent
bc5d5cdf1e
commit
31acaae81c
1 changed files with 4 additions and 3 deletions
|
@ -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: </a>
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue