<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.mb-strripos.php',
    1 => 'mb_strripos',
    2 => '大文字小文字を区別せず、
   文字列の中で指定した文字列が最後に現れる位置を探す',
  ),
  'up' => 
  array (
    0 => 'ref.mbstring.php',
    1 => 'マルチバイト文字列 関数',
  ),
  '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' => 'ja',
    '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">
   大文字小文字を区別せず、
   文字列の中で指定した文字列が最後に現れる位置を探す
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.mb-strripos-description">
  <h3 class="title">説明</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> は、マルチバイト対応の
   <span class="function"><a href="function.strripos.php" class="function">strripos()</a></span> 操作を、文字数に基づいて行います。
   <code class="parameter">needle</code> の位置を
   <code class="parameter">haystack</code> の先頭から順に数えていきます。
   最初の文字の位置は 0、二番目の文字の位置は 1 という具合です。
   <span class="function"><a href="function.mb-strrpos.php" class="function">mb_strrpos()</a></span> とは異なり、
   <span class="function"><strong>mb_strripos()</strong></span> は大文字小文字を区別しません。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.mb-strripos-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">haystack</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">needle</code> が最後に現れる位置を見つける文字列。
      </p>
     </dd>
    
    
     <dt><code class="parameter">needle</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">haystack</code> の中で探す文字列。
      </p>
     </dd>
    
    
     <dt><code class="parameter">offset</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">haystack</code>
       内の任意の文字数から検索を開始するために指定します。
       負の値を指定すると、
       <code class="parameter">haystack</code>
       の末尾より前の任意の地点で検索が停止します。
      </p>
     </dd>
    
    
     <dt><code class="parameter">encoding</code></dt>
     <dd>
      <p class="para"><code class="parameter">encoding</code>
パラメータには文字エンコーディングを指定します。省略した場合、もしくは <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> の場合は、
内部文字エンコーディングを使用します。</p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.mb-strripos-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   <code class="parameter">needle</code> が <code class="parameter">haystack</code>
   の中で最後に現れる位置を返します。<code class="parameter">needle</code>
   が見つからない場合は <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.mb-strripos-errors">
  <h3 class="title">エラー / 例外</h3>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <code class="parameter">offset</code> が <code class="parameter">haystack</code>
     の長さより大きい場合、
     <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> がスローされます。
    </span>
   </li>
  </ul>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.mb-strripos-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">needle</code> は、空の文字列も受け入れるようになりました。
 </td>
</tr>

     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">encoding</code> は、nullable になりました。
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 

 <div class="refsect1 seealso" id="refsect1-function.mb-strripos-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.strripos.php" class="function" rel="rdfs-seeAlso">strripos()</a> - 文字列中で、特定の(大文字小文字を区別しない)文字列が最後に現れた位置を探す</span></li>
    <li><span class="function"><a href="function.strrpos.php" class="function" rel="rdfs-seeAlso">strrpos()</a> - 文字列中に、ある部分文字列が最後に現れる場所を探す</span></li>
    <li><span class="function"><a href="function.mb-strrpos.php" class="function" rel="rdfs-seeAlso">mb_strrpos()</a> - 文字列の中に指定した文字列が最後に現れる位置を見つける</span></li>
   </ul>
  </p>
 </div>

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