downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/function.mb-strripos.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/ref.mbstring.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'function.mb-strripos.php',
   
1 => 'mb_strripos',
  ),
 
'up' =>
  array (
   
0 => 'ref.mbstring.php',
   
1 => 'Multibyte String Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.mb-strrichr.php',
   
1 => 'mb_strrichr',
  ),
 
'next' =>
  array (
   
0 => 'function.mb-strrpos.php',
   
1 => 'mb_strrpos',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.mb-strripos" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_strripos</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0)</p><p class="refpurpose"><span class="refname">mb_strripos</span> &mdash; <span class="dc-title">Finds position of last occurrence of a string within another, case insensitive</span></p>

 </div>
 <a name="function.mb-strripos.description"></a><div class="refsect1 description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><b>mb_strripos</b></span>
    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$haystack</tt></span>
   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$needle</tt></span>
   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$offset</tt></span>
   [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$encoding</tt></span>
  ]] )</div>

  <p class="para rdfs-comment">
   <b>mb_strripos()</b> performs multi-byte safe
   <a href="function.strripos.php" class="function">strripos()</a> operation based on
   number of characters. <i><tt class="parameter">needle</tt></i>
 position is
   counted from the beginning of
   <i><tt class="parameter">haystack</tt></i>
. First character&#039;s position is
   0. Second character position is 1.
   Unlike <a href="function.mb-strrpos.php" class="function">mb_strrpos()</a>,
   <b>mb_strripos()</b> is case-insensitive.
  </p>
 </div>

 <a name="function.mb-strripos.parameters"></a><div class="refsect1 parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   </p><dl>

    <dt class="varlistentry">

     <span class="term"><i><tt class="parameter">haystack</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       The string from which to get the position of the last occurrence
       of <i><tt class="parameter">needle</tt></i>

      </p>
     </dd>

   
    <dt class="varlistentry">

     <span class="term"><i><tt class="parameter">needle</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       The string to find in <i><tt class="parameter">haystack</tt></i>

      </p>
     </dd>

   
    <dt class="varlistentry">

     <span class="term"><i><tt class="parameter">offset</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       The position in <i><tt class="parameter">haystack</tt></i>

       to start searching
      </p>
     </dd>

   
    <dt class="varlistentry">

     <span class="term"><i><tt class="parameter">encoding</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       Character encoding name to use.
       If it is omitted, internal character encoding is used.
      </p>
     </dd>

   
   </dl>
<p>
  </p>
 </div>

 <a name="function.mb-strripos.returnvalues"></a><div class="refsect1 returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Return the numeric position of
   the last occurrence of <i><tt class="parameter">needle</tt></i>
 in the
   <i><tt class="parameter">haystack</tt></i>
 string, or <b><tt class="constant">FALSE</tt></b>
   if <i><tt class="parameter">needle</tt></i>
 is not found.
  </p>
 </div>


 


 


 

 <a name="function.mb-strripos.seealso"></a><div class="refsect1 seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   </p><ul class="simplelist">
    <li class="member"><a href="function.strripos.php" class="function" rel="rdfs-seeAlso">strripos()</a> - Find position of last occurrence of a case-insensitive string in a string</li>
    <li class="member"><a href="function.strrpos.php" class="function" rel="rdfs-seeAlso">strrpos()</a> - Find position of last occurrence of a char in a string</li>
    <li class="member"><a href="function.mb-strrpos.php" class="function" rel="rdfs-seeAlso">mb_strrpos()</a> - Find position of last occurrence of a string in a string</li>
   </ul><p>
  </p>
 </div>

</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites