Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 4216

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Finds position of last occurrence of a string within another, case insensitive</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.mb-strrichr.html">mb_strrichr</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.mb-strrpos.html">mb_strrpos</a></div>
 <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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>
 <div class="refsect1 description" id="refsect1-function.mb-strripos-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>mb_strripos</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$haystack</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$needle</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$offset</code><span class="initializer"> = 0</span></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$encoding</code><span class="initializer"> = mb_internal_encoding()</span></span>
  ]] )</div>

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

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

    <dt>

     <span class="term"><em><code class="parameter">haystack</code></em></span>
     <dd>

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

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">needle</code></em></span>
     <dd>

      <p class="para">
       The string to find in <em><code class="parameter">haystack</code></em>
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">offset</code></em></span>
     <dd>

      <p class="para">
       The position in <em><code class="parameter">haystack</code></em>
       to start searching
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">encoding</code></em></span>
     <dd>

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

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.mb-strripos-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Return the numeric position of
   the last occurrence of <em><code class="parameter">needle</code></em> in the
   <em><code class="parameter">haystack</code></em> string, or <strong><code>FALSE</code></strong>
   if <em><code class="parameter">needle</code></em> is not found.
  </p>
 </div>


 


 


 

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

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.mb-strrichr.html">mb_strrichr</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.mb-strrpos.html">mb_strrpos</a></div>
 <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>