Update...

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@145427 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sara Golemon 2003-12-03 01:41:54 +00:00
parent 2d2ee23e95
commit d95f0d450c
2 changed files with 23 additions and 7 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<refentry id="function.strripos">
<refnamediv>
<refname>strripos</refname>
@ -13,6 +13,7 @@
<type>int</type><methodname>strripos</methodname>
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
<methodparam><type>string</type><parameter>needle</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam>
</methodsynopsis>
<para>
Returns the numeric position of the last occurrence of
@ -61,6 +62,11 @@ if ($pos === false) {
</programlisting>
</example>
</para>
<simpara>
<parameter>offset</parameter> may be specified to begin searching an
arbitrary number of characters into the string. Negative values will
stop searching at an arbitrary point prior to the end of the string.
</simpara>
<para>
See also <function>strrpos</function>,
<function>strrchr</function>,

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.8 -->
<refentry id="function.strrpos">
<refnamediv>
@ -14,6 +14,7 @@
<type>int</type><methodname>strrpos</methodname>
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
<methodparam><type>string</type><parameter>needle</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam>
</methodsynopsis>
<para>
Returns the numeric position of the last occurrence of
@ -55,11 +56,20 @@ if (is_string($pos) && !$pos) {
If <parameter>needle</parameter> is not a string, it is converted
to an integer and applied as the ordinal value of a character.
</para>
<para>
The <parameter>needle</parameter> may be a string of more than one
character as of PHP 5, and numbers are converted to a string instead of
being applied as the ordinal value of a character.
</para>
<note>
<simpara>
As of <literal>PHP 5.0.0</literal> <parameter>offset</parameter> may
be specified to begin searching an arbitrary number of characters into
the string. Negative values will stop searching at an arbitrary point
prior to the end of the string.
</simpara>
</note>
<note>
<simpara>
The <parameter>needle</parameter> may be a string of more than one
character as of <literal>PHP 5.0.0</literal>.
</simpara>
</note>
<para>
See also <function>strpos</function>,
<function>strripos</function>,