uTools-Manuals/docs/php/mb_strripos.html
2019-04-28 19:00:34 +08:00

118 lines
4.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>大小写不敏感地在字符串中查找一个字符串最后出现的位置</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><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)</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>
( <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>
]] ) : <span class="type">int</span></div>
<p class="para rdfs-comment">
<span class="function"><strong>mb_strripos()</strong></span> 基于字符数执行一个多字节安全的 <span class="function"><a href="strripos.html" class="function">strripos()</a></span> 操作。
<code class="parameter">needle</code> 的位置是从 <code class="parameter">haystack</code> 的开始进行统计的。
第一个字符的位置是 0第二个字符的位置是 1。
<span class="function"><a href="mb_strrpos.html" 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> 中开始搜索的位置。
</p>
</dd>
<dt>
<code class="parameter">encoding</code></dt>
<dd>
<p class="para">
使用的字符编码名称。如果省略了,则将使用内部编码。
</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">haystack</code><code class="parameter">needle</code> 最后出现位置的数值。
如果没有找到 <code class="parameter">needle</code>,它将返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.mb-strripos-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="strripos.html" class="function" rel="rdfs-seeAlso">strripos()</a> - 计算指定字符串在目标字符串中最后一次出现的位置(不区分大小写)</span></li>
<li class="member"><span class="function"><a href="strrpos.html" class="function" rel="rdfs-seeAlso">strrpos()</a> - 计算指定字符串在目标字符串中最后一次出现的位置</span></li>
<li class="member"><span class="function"><a href="mb_strrpos.html" class="function" rel="rdfs-seeAlso">mb_strrpos()</a> - 查找字符串在一个字符串中最后出现的位置</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>