Re: svn: /phpdoc/en/trunk/reference/strings/functions/ strrpos.xml
| From: | Richard Quadling | Date: | Wed, 13 Oct 2010 12:29:48 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/strings/functions/ strrpos.xml | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-7218@lists.php.net to get a copy of this message | ||
On 13 October 2010 11:34, Adam Harvey <aharvey@php.net> wrote:
> aharvey Wed, 13 Oct 2010 10:34:16 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=304370
>
> Log:
> Fix doc bug #53051 (Just a TYPO!).
>
> Bug: http://bugs.php.net/53051 (Assigned) Just a TYPO!
>
> Changed paths:
> U phpdoc/en/trunk/reference/strings/functions/strrpos..xml
>
> Modified: phpdoc/en/trunk/reference/strings/functions/strrpos.xml
> ===================================================================
> --- phpdoc/en/trunk/reference/strings/functions/strrpos.xml 2010-10-13 09:53:12 UTC (rev
> 304369)
> +++ phpdoc/en/trunk/reference/strings/functions/strrpos.xml 2010-10-13 10:34:16 UTC (rev
> 304370)
> @@ -3,7 +3,7 @@
> <refentry xmlns="http://docbook.org/ns/docbook"
> xml:id="function.strrpos">
> <refnamediv>
> <refname>strrpos</refname>
> - <refpurpose>Find position of last occurrence of a char in a string</refpurpose>
> + <refpurpose>Find the position of the last occurrence of a substring in a
> string</refpurpose>
> </refnamediv>
>
> <refsect1 role="description">
> @@ -16,11 +16,9 @@
> </methodsynopsis>
> <para>
> Returns the numeric position of the last occurrence of
> - <parameter>needle</parameter> in the
> - <parameter>haystack</parameter> string. Note that the needle in
> - this case can only be a single character in PHP 4. If a string is passed
> - as the needle, then only the first character of that string will
> - be used.
> + <parameter>needle</parameter> in the
> <parameter>haystack</parameter>
> + string. If a string is passed as the needle, then only the first character
> + of that string will be used.
> </para>
> </refsect1>
>
> @@ -41,7 +39,8 @@
> <listitem>
> <para>
> If <parameter>needle</parameter> is not a string, it is converted
> - to an integer and applied as the ordinal value of a character.
> + to an integer and applied as the ordinal value of a character. The
> + <parameter>needle</parameter> can only be a single character in PHP 4.
> </para>
> </listitem>
> </varlistentry>
>
>
> --
> PHP Documentation Commits Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
<?php
var_dump(strrpos('abracadabra', 'a'));
var_dump(strrpos('abracadabra', 'ab'));
var_dump(strrpos('abracadabra', 'ac'));
PHP V4.0.2 to PHP V4.4.9
int(10)
int(10)
int(10)
PHP V5.0.0+
int(10)
int(7)
int(3)
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY