cvs: phpdoc /en/reference/strings/functions str-ireplace.xml str-replace.xml

From: Date: Tue, 15 Apr 2003 03:20:22 +0000
Subject: cvs: phpdoc /en/reference/strings/functions str-ireplace.xml str-replace.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352604@lists.php.net to get a copy of this message
pollita Mon Apr 14 23:20:22 2003 EDT Modified files: /phpdoc/en/reference/strings/functions str-replace.xml str-ireplace.xml Log: Additional parameter for str_replace()/str_ireplace() Index: phpdoc/en/reference/strings/functions/str-replace.xml diff -u phpdoc/en/reference/strings/functions/str-replace.xml:1.4 phpdoc/en/reference/strings/functions/str-replace.xml:1.5 --- phpdoc/en/reference/strings/functions/str-replace.xml:1.4 Fri Feb 28 18:47:53 2003 +++ phpdoc/en/reference/strings/functions/str-replace.xml Mon Apr 14 23:20:22 2003 @@ -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>&amp;count</parameter></methodparam> </methodsynopsis> <para> This function returns a string or an array with all occurences of @@ -65,6 +66,13 @@ <function>str_replace</function> was added in PHP 3.0.6, but was 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 Index: phpdoc/en/reference/strings/functions/str-ireplace.xml diff -u phpdoc/en/reference/strings/functions/str-ireplace.xml:1.1 phpdoc/en/reference/strings/functions/str-ireplace.xml:1.2 --- phpdoc/en/reference/strings/functions/str-ireplace.xml:1.1 Thu Jan 30 00:25:37 2003 +++ phpdoc/en/reference/strings/functions/str-ireplace.xml Mon Apr 14 23:20:22 2003 @@ -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>&amp;count</parameter></methodparam> </methodsynopsis> <para> This function returns a string or an array with all occurences of @@ -56,6 +57,13 @@ <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>,

« previous php.doc (#969352604) next »