clarified that the function will return the haystack including the needle, fixes #61085

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323216 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Gordon Oheim 2012-02-14 18:19:06 +00:00
parent d512da1337
commit 1d04cd176b
3 changed files with 6 additions and 6 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>