<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = 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 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.mb-strripos.php',
    1 => 'mb_strripos',
    2 => 'Finds position of last occurrence of a string within another, case insensitive',
  ),
  'up' => 
  array (
    0 => 'ref.mbstring.php',
    1 => 'Multibyte String Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.mb-strrichr.php',
    1 => 'mb_strrichr',
  ),
  'next' => 
  array (
    0 => 'function.mb-strrpos.php',
    1 => 'mb_strrpos',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mbstring/functions/mb-strripos.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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, PHP 7, PHP 8)</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">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mb_strripos</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$haystack</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$needle</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$offset</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$encoding</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></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.php" class="function">strripos()</a></span> operation based on
   number of characters. <code class="parameter">needle</code> position is
   counted from the beginning of
   <code class="parameter">haystack</code>. First character&#039;s position is
   0. Second character position is 1. 
   Unlike <span class="function"><a href="function.mb-strrpos.php" 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">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">haystack</code></dt>
     <dd>
      <p class="para">
       The string from which to get the position of the last occurrence
       of <code class="parameter">needle</code>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">needle</code></dt>
     <dd>
      <p class="para">
       The string to find in <code class="parameter">haystack</code>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">offset</code></dt>
     <dd>
      <p class="para">
       May be specified to begin searching an arbitrary number of characters into
       the <code class="parameter">haystack</code>. Negative values will stop searching at an arbitrary point
       prior to the end of the <code class="parameter">haystack</code>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">encoding</code></dt>
     <dd>
      <p class="para">Il parametro <code class="parameter">encoding</code> 
è la codifica dei caratteri. Se è omesso, verrà utilizzata la 
codifica interna.</p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.mb-strripos-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Return the numeric position of
   the last occurrence of <code class="parameter">needle</code> in the
   <code class="parameter">haystack</code> string, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>
   if <code class="parameter">needle</code> is not found.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.mb-strripos-errors">
  <h3 class="title">Errori/Eccezioni</h3>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     If <code class="parameter">offset</code> is greater than the length of
     <code class="parameter">haystack</code>, a
     <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> will be thrown.
    </span>
   </li>
  </ul>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.mb-strripos-changelog">
  <h3 class="title">Log delle modifiche</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versione</th>
      <th>Descrizione</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">needle</code> now accepts an empty string.
 </td>
</tr>

     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">encoding</code> is nullable now.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 

 <div class="refsect1 seealso" id="refsect1-function.mb-strripos-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.strripos.php" class="function" rel="rdfs-seeAlso">strripos()</a> - Trova la posizione dell'ultima occorrenza di una stringa in un'altra indipendentemente dalle lettere minuscole/maiusole</span></li>
    <li><span class="function"><a href="function.strrpos.php" class="function" rel="rdfs-seeAlso">strrpos()</a> - Trova la posizione dell'ultima occorrenza di un carattere in una stringa</span></li>
    <li><span class="function"><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</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>