mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Additional parameter for str_replace()/str_ireplace()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@123440 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3aeb7bef30
commit
235243af5f
2 changed files with 18 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.str-ireplace">
|
||||
<refnamediv>
|
||||
|
@ -15,6 +15,7 @@
|
|||
<methodparam><type>mixed</type><parameter>search</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>replace</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>subject</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>&count</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a string or an array with all occurences of
|
||||
|
@ -56,6 +57,13 @@ $bodytag = str_replace("%body%", "black", "<body text=%BODY%>");
|
|||
<para>
|
||||
This function is binary safe.
|
||||
</para>
|
||||
<note>
|
||||
<simpara>
|
||||
As of <literal>PHP 5.0</literal> the number of matched and replaced
|
||||
<parameter>needle</parameter>s will be returned in
|
||||
<parameter>count</parameter> which is passed by reference.
|
||||
</simpara>
|
||||
</note>
|
||||
<para>
|
||||
See also:
|
||||
<function>str_replace</function>,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.str-replace">
|
||||
<refnamediv>
|
||||
|
@ -15,6 +15,7 @@
|
|||
<methodparam><type>mixed</type><parameter>search</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>replace</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>subject</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>&count</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a string or an array with all occurences of
|
||||
|
@ -66,6 +67,13 @@ $bodytag = str_replace("%body%", "black", "<body text=%body%>");
|
|||
buggy up until PHP 3.0.8.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<simpara>
|
||||
As of <literal>PHP 5.0</literal> the number of matched and replaced
|
||||
<parameter>needle</parameter>s will be returned in
|
||||
<parameter>count</parameter> which is passed by reference.
|
||||
</simpara>
|
||||
</note>
|
||||
<para>
|
||||
See also
|
||||
<function>str_ireplace</function>,
|
||||
|
|
Loading…
Reference in a new issue