svn: /phpdoc/en/trunk/reference/ intl/grapheme/grapheme-strstr.xml mbstring/functions/mb-strstr.xml strings/functions/strstr.xml
| From: | Gordon Oheim | Date: | Tue, 14 Feb 2012 18:19:06 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/ intl/grapheme/grapheme-strstr.xml mbstring/functions/mb-strstr.xml strings/functions/strstr.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9594@lists.php.net to get a copy of this message | ||
gooh Tue, 14 Feb 2012 18:19:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323216
Log:
clarified that the function will return the haystack including the needle, fixes #61085
Bug: https://bugs.php.net/61085 (Open) Description of
strstr
Changed paths:
U phpdoc/en/trunk/reference/intl/grapheme/grapheme-strstr.xml
U phpdoc/en/trunk/reference/mbstring/functions/mb-strstr.xml
U phpdoc/en/trunk/reference/strings/functions/strstr.xml
Modified: phpdoc/en/trunk/reference/intl/grapheme/grapheme-strstr.xml
===================================================================
--- phpdoc/en/trunk/reference/intl/grapheme/grapheme-strstr.xml 2012-02-14 17:53:14 UTC (rev 323215)
+++ phpdoc/en/trunk/reference/intl/grapheme/grapheme-strstr.xml 2012-02-14 18:19:06 UTC (rev 323216)
@@ -15,7 +15,7 @@
<methodparam
choice="opt"><type>bool</type><parameter>before_needle</parameter><initializer>false</initializer></methodparam>
</methodsynopsis>
<para>
- Returns part of haystack string from the first occurrence of needle to the end of haystack.
+ Returns part of haystack string from the first occurrence of needle to the end of haystack
(including the needle).
</para>
</refsect1>
@@ -44,7 +44,7 @@
<listitem>
<para>
If &true;, grapheme_strstr() returns the part of the
- haystack before the first occurrence of the needle.
+ haystack before the first occurrence of the needle (excluding the needle).
</para>
</listitem>
</varlistentry>
Modified: phpdoc/en/trunk/reference/mbstring/functions/mb-strstr.xml
===================================================================
--- phpdoc/en/trunk/reference/mbstring/functions/mb-strstr.xml 2012-02-14 17:53:14 UTC (rev 323215)
+++ phpdoc/en/trunk/reference/mbstring/functions/mb-strstr.xml 2012-02-14 18:19:06 UTC (rev 323216)
@@ -50,9 +50,9 @@
Determines which portion of <parameter>haystack</parameter>
this function returns.
If set to &true;, it returns all of <parameter>haystack</parameter>
- from the beginning to the first occurrence of <parameter>needle</parameter>.
+ from the beginning to the first occurrence of <parameter>needle</parameter>
(excluding needle).
If set to &false;, it returns all of <parameter>haystack</parameter>
- from the first occurrence of <parameter>needle</parameter> to the end,
+ from the first occurrence of <parameter>needle</parameter> to the end (including
needle).
</para>
</listitem>
</varlistentry>
Modified: phpdoc/en/trunk/reference/strings/functions/strstr.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/strstr.xml 2012-02-14 17:53:14 UTC (rev 323215)
+++ phpdoc/en/trunk/reference/strings/functions/strstr.xml 2012-02-14 18:19:06 UTC (rev 323216)
@@ -15,7 +15,7 @@
<methodparam
choice="opt"><type>bool</type><parameter>before_needle</parameter><initializer>false</initializer></methodparam>
</methodsynopsis>
<para>
- Returns part of <parameter>haystack</parameter> string from the first
+ Returns part of <parameter>haystack</parameter> string starting from and including
the first
occurrence of <parameter>needle</parameter> to the end of
<parameter>haystack</parameter>.
</para>
@@ -61,7 +61,7 @@
<para>
If &true;, <function>strstr</function> returns
the part of the <parameter>haystack</parameter> before the first
- occurrence of the <parameter>needle</parameter>.
+ occurrence of the <parameter>needle</parameter> (excluding the needle).
</para>
</listitem>
</varlistentry>