📄 function.mb-strrichr.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Finds the last occurrence of a character in a string within another, case insensitive</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mb-strrchr.html">mb_strrchr</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-strripos.html">mb_strripos</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-strrichr" class="refentry"> <div class="refnamediv"> <h1 class="refname">mb_strrichr</h1> <p class="verinfo">(PHP 5 >= 5.2.0)</p><p class="refpurpose"><span class="refname">mb_strrichr</span> — <span class="dc-title">Finds the last occurrence of a character in a string within another, case insensitive</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><b><b>mb_strrichr</b></b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$haystack</tt></span> , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$needle</tt></span> [, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$part</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$encoding</tt></span> ]] )</div> <p class="para rdfs-comment"> <b>mb_strrichr()</b> finds the last occurrence of <i><tt class="parameter">needle</tt></i> in <i><tt class="parameter">haystack</tt></i> and returns the portion of <i><tt class="parameter">haystack</tt></i>. Unlike <a href="function.mb-strrchr.html" class="function">mb_strrchr()</a>, <b>mb_strrichr()</b> is case-insensitive. If <i><tt class="parameter">needle</tt></i> is not found, it returns <b><tt>FALSE</tt></b>. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">haystack</tt></i></span> <dd> <p class="para"> The string from which to get the last occurrence of <i><tt class="parameter">needle</tt></i> </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">needle</tt></i></span> <dd> <p class="para"> The string to find in <i><tt class="parameter">haystack</tt></i> </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">part</tt></i></span> <dd> <p class="para"> Determines which portion of <i><tt class="parameter">haystack</tt></i> this function returns. If set to <b><tt>TRUE</tt></b>, it returns all of <i><tt class="parameter">haystack</tt></i> from the beginning to the last occurrence of <i><tt class="parameter">needle</tt></i>. If set to <b><tt>FALSE</tt></b>, it returns all of <i><tt class="parameter">haystack</tt></i> from the last occurrence of <i><tt class="parameter">needle</tt></i> to the end, Default value is <b><tt>FALSE</tt></b>. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">encoding</tt></i></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"> <h3 class="title">Return Values</h3> <p class="para"> Returns the portion of <i><tt class="parameter">haystack</tt></i>. or <b><tt>FALSE</tt></b> if <i><tt class="parameter">needle</tt></i> is not found. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.mb-stristr.html" class="function" rel="rdfs-seeAlso">mb_stristr()</a></li> <li class="member"><a href="function.mb-strrchr.html" class="function" rel="rdfs-seeAlso">mb_strrchr()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mb-strrchr.html">mb_strrchr</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-strripos.html">mb_strripos</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -