mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
* Add notice about "what if replacement is array while search is not?"
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@181868 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2a7f9c9533
commit
8c10042cbb
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<!-- $Revision: 1.18 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.str-replace">
|
||||
<refnamediv>
|
||||
|
@ -56,9 +56,10 @@
|
|||
<parameter>replace</parameter> has fewer values than
|
||||
<parameter>search</parameter>, then an empty string is used for
|
||||
the rest of replacement values. If <parameter>search</parameter>
|
||||
is an array and <parameter>replace</parameter> is a string; then
|
||||
is an array and <parameter>replace</parameter> is a string, then
|
||||
this replacement string is used for every value of
|
||||
<parameter>search</parameter>.
|
||||
<parameter>search</parameter>. The converse would not make sense,
|
||||
though.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
|
|
Loading…
Reference in a new issue