<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.intl.grapheme.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.grapheme-strripos.php',
    1 => 'grapheme_strripos',
    2 => '大文字小文字を区別せず、文字列内で最後にあらわれる場所の (書記素単位の) 位置を見つける',
  ),
  'up' => 
  array (
    0 => 'ref.intl.grapheme.php',
    1 => 'Grapheme 関数',
  ),
  'prev' => 
  array (
    0 => 'function.grapheme-strpos.php',
    1 => 'grapheme_strpos',
  ),
  'next' => 
  array (
    0 => 'function.grapheme-strrpos.php',
    1 => 'grapheme_strrpos',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/intl/grapheme/grapheme-strripos.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.grapheme-strripos" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">grapheme_strripos</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL intl &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">grapheme_strripos</span> &mdash; <span class="dc-title">大文字小文字を区別せず、文字列内で最後にあらわれる場所の (書記素単位の) 位置を見つける</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.grapheme-strripos-description">
  <h3 class="title">説明</h3>
  <p class="para">手続き型</p>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>grapheme_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"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$locale</code><span class="initializer"> = &quot;&quot;</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">
   大文字小文字を区別せず、文字列内で最後にあらわれる場所の (書記素単位の) 位置を見つけます。
  </p> 
 </div>


 <div class="refsect1 parameters" id="refsect1-function.grapheme-strripos-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">haystack</code></dt>
     <dd>
      <p class="para">
       探す対象となる文字列。正しい形式の UTF-8 でなければなりません。
      </p>
     </dd>
    
    
     <dt><code class="parameter">needle</code></dt>
     <dd>
      <p class="para">
       探したい文字列。正しい形式の UTF-8 でなければなりません。
      </p>
     </dd>
    
    
     <dt><code class="parameter">offset</code></dt>
     <dd>
      <p class="para">
       オプションの <code class="parameter">offset</code> パラメータで、<code class="parameter">haystack</code>
       のどの位置 (バイト数や文字数ではなく、書記素単位) から探し始めるのかを指定します。
       <code class="parameter">offset</code> の値にかかわらず、返される値は常に <code class="parameter">haystack</code>
       の先頭からの位置になります。
      </p>
     </dd>
    
    
     <dt><code class="parameter">locale</code></dt>
     <dd>
      <span class="simpara">使用するロケール。</span>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.grapheme-strripos-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   位置を表す整数値を返します。<code class="parameter">needle</code> が見つからない場合は
   <span class="function"><strong>grapheme_strripos()</strong></span> は <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


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

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.5.0</td>
 <td>
  オプションのパラメータ <code class="parameter">locale</code> が追加されました。
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.grapheme-strripos-examples">
  <h3 class="title">例</h3>
  <div class="example" id="example-1">
   <p><strong>例1 <span class="function"><strong>grapheme_strripos()</strong></span> の例</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$char_a_ring_nfd </span><span style="color: #007700">= </span><span style="color: #DD0000">"a\xCC\x8A"</span><span style="color: #007700">;  </span><span style="color: #FF8000">// 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D"<br /></span><span style="color: #0000BB">$char_o_diaeresis_nfd </span><span style="color: #007700">= </span><span style="color: #DD0000">"o\xCC\x88"</span><span style="color: #007700">; </span><span style="color: #FF8000">// 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D"<br /></span><span style="color: #0000BB">$char_O_diaeresis_nfd </span><span style="color: #007700">= </span><span style="color: #DD0000">"O\xCC\x88"</span><span style="color: #007700">; </span><span style="color: #FF8000">// 'LATIN CAPITAL LETTER O WITH DIAERESIS' (U+00D6) normalization form "D"<br /><br /></span><span style="color: #007700">print </span><span style="color: #0000BB">grapheme_strripos</span><span style="color: #007700">( </span><span style="color: #0000BB">$char_a_ring_nfd </span><span style="color: #007700">. </span><span style="color: #0000BB">$char_o_diaeresis_nfd </span><span style="color: #007700">. </span><span style="color: #0000BB">$char_o_diaeresis_nfd</span><span style="color: #007700">, </span><span style="color: #0000BB">$char_O_diaeresis_nfd</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
  <p class="para">上の例の出力は以下となります。</p>
  <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">2</pre>
</div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.grapheme-strripos-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.grapheme-stripos.php" class="function" rel="rdfs-seeAlso">grapheme_stripos()</a> - 大文字小文字を区別せず、文字列内で最初にあらわれる場所の (書記素単位の) 位置を見つける</span></li>
    <li><span class="function"><a href="function.grapheme-stristr.php" class="function" rel="rdfs-seeAlso">grapheme_stristr()</a> - 大文字小文字を区別せず、haystack 文字列の中で needle が最初に登場した場所以降の部分文字列を返す</span></li>
    <li><span class="function"><a href="function.grapheme-strpos.php" class="function" rel="rdfs-seeAlso">grapheme_strpos()</a> - 文字列内で最初にあらわれる場所の (書記素単位の) 位置を見つける</span></li>
    <li><span class="function"><a href="function.grapheme-strrpos.php" class="function" rel="rdfs-seeAlso">grapheme_strrpos()</a> - 文字列内で最後にあらわれる場所の (書記素単位の) 位置を見つける</span></li>
    <li><span class="function"><a href="function.grapheme-strstr.php" class="function" rel="rdfs-seeAlso">grapheme_strstr()</a> - haystack 文字列の中で、needle が最初に登場した場所以降の部分文字列を返す</span></li>
    <li>
     <a href="http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries" class="link external">&raquo;&nbsp;
      Unicode Text Segmentation: Grapheme Cluster Boundaries
     </a>
    </li>
   </ul>
  </p>
 </div>

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