function.mb-stripos.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 148 行
HTML
148 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Finds position of first occurrence of 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-strimwidth.html">mb_strimwidth</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-stristr.html">mb_stristr</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-stripos" class="refentry"> <div class="refnamediv"> <h1 class="refname">mb_stripos</h1> <p class="verinfo">(PHP 5 >= 5.2.0)</p><p class="refpurpose"><span class="refname">mb_stripos</span> — <span class="dc-title">Finds position of first occurrence of 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">int</span> <span class="methodname"><b><b>mb_stripos</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">int</span> <tt class="parameter">$offset</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$encoding</tt></span> ]] )</div> <p class="para rdfs-comment"> <b>mb_stripos()</b> returns the numeric position of the first occurrence of <i><tt class="parameter">needle</tt></i> in the <i><tt class="parameter">haystack</tt></i> string. Unlike <a href="function.mb-strpos.html" class="function">mb_strpos()</a>, <b>mb_stripos()</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 position of the first 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">offset</tt></i></span> <dd> <p class="para"> The position in <i><tt class="parameter">haystack</tt></i> to start searching </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"> Return the numeric position of the first occurrence of <i><tt class="parameter">needle</tt></i> in the <i><tt class="parameter">haystack</tt></i> string, 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.stripos.html" class="function" rel="rdfs-seeAlso">stripos()</a></li> <li class="member"><a href="function.strpos.html" class="function" rel="rdfs-seeAlso">strpos()</a></li> <li class="member"><a href="function.mb-strpos.html" class="function" rel="rdfs-seeAlso">mb_strpos()</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-strimwidth.html">mb_strimwidth</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-stristr.html">mb_stristr</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 + =
减小字号Ctrl + -
显示快捷键?