mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
example showing case insensitivity for strripos and some see also
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@129021 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
676cfd8c73
commit
ab4fe6b1c8
3 changed files with 17 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.8 -->
|
||||
<refentry id="function.strpos">
|
||||
<refnamediv>
|
||||
|
@ -66,9 +66,13 @@ if ($pos === false) {
|
|||
the beginning of <parameter>haystack</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>strrpos</function>, <function>stripos</function>,
|
||||
<function>strrchr</function>, <function>substr</function>,
|
||||
<function>stristr</function>, and <function>strstr</function>.
|
||||
See also <function>strrpos</function>,
|
||||
<function>stripos</function>,
|
||||
<function>strripos</function>,
|
||||
<function>strrchr</function>,
|
||||
<function>substr</function>,
|
||||
<function>stristr</function>, and
|
||||
<function>strstr</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<refentry id="function.strripos">
|
||||
<refnamediv>
|
||||
<refname>strripos</refname>
|
||||
|
@ -35,7 +35,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
$haystack = 'ababcd';
|
||||
$needle = 'ab';
|
||||
$needle = 'aB';
|
||||
|
||||
$pos = strripos($haystack, $needle);
|
||||
|
||||
|
@ -49,7 +49,7 @@ if ($pos === false) {
|
|||
/* Outputs:
|
||||
|
||||
Congratulations!
|
||||
We found the last (ab) in (ababcd) at position (2)
|
||||
We found the last (aB) in (ababcd) at position (2)
|
||||
|
||||
*/
|
||||
?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.8 -->
|
||||
<refentry id="function.strrpos">
|
||||
<refnamediv>
|
||||
|
@ -56,8 +56,11 @@ if (is_string($pos) && !$pos) {
|
|||
</para>
|
||||
<para>
|
||||
See also <function>strpos</function>,
|
||||
<function>strrchr</function>, <function>substr</function>,
|
||||
<function>stristr</function>, and <function>strstr</function>.
|
||||
<function>strripos</function>,
|
||||
<function>strrchr</function>,
|
||||
<function>substr</function>,
|
||||
<function>stristr</function>, and
|
||||
<function>strstr</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue