mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
106 lines
3.6 KiB
HTML
106 lines
3.6 KiB
HTML
<!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>Set start point of next regular expression match</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.mb-ereg-search-setpos" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">mb_ereg_search_setpos</h1>
|
||
<p class="verinfo">(PHP 4 >= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">mb_ereg_search_setpos</span> — <span class="dc-title">Set start point of next regular expression match</span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.mb-ereg-search-setpos-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>mb_ereg_search_setpos</strong></span>
|
||
( <span class="methodparam"><span class="type">int</span> <code class="parameter">$position</code></span>
|
||
) : <span class="type">bool</span></div>
|
||
|
||
<p class="simpara">
|
||
<span class="function"><strong>mb_ereg_search_setpos()</strong></span> sets the starting
|
||
point of a match for <span class="function"><a href="mb_ereg_search.html" class="function">mb_ereg_search()</a></span>.
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.mb-ereg-search-setpos-parameters">
|
||
<h3 class="title">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">position</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
The position to set. If it is negative, it counts from the end of the string.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.mb-ereg-search-setpos-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="simpara">
|
||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 changelog" id="refsect1-function.mb-ereg-search-setpos-changelog">
|
||
<h3 class="title">更新日志</h3>
|
||
<table class="doctable informaltable">
|
||
|
||
<thead>
|
||
<tr>
|
||
<th>版本</th>
|
||
<th>说明</th>
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody class="tbody">
|
||
<tr>
|
||
<td>7.1.0</td>
|
||
<td>
|
||
Support for negative <code class="parameter">position</code>s has been added.
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
|
||
</table>
|
||
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 notes" id="refsect1-function.mb-ereg-search-setpos-notes">
|
||
<h3 class="title">注释</h3>
|
||
|
||
<blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"><span class="function"><a href="mb_regex_encoding.html" class="function">mb_regex_encoding()</a></span>
|
||
指定的内部编码或字符编码将会当作此函数用的字符编码。</p></p></blockquote>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.mb-ereg-search-setpos-seealso">
|
||
<h3 class="title">参见</h3>
|
||
<p class="para">
|
||
<ul class="simplelist">
|
||
<li class="member"><span class="function"><a href="mb_regex_encoding.html" class="function" rel="rdfs-seeAlso">mb_regex_encoding()</a> - Set/Get character encoding for multibyte regex</span></li>
|
||
<li class="member"><span class="function"><a href="mb_ereg_search_init.html" class="function" rel="rdfs-seeAlso">mb_ereg_search_init()</a> - Setup string and regular expression for a multibyte regular expression match</span></li>
|
||
</ul>
|
||
</p>
|
||
</div>
|
||
|
||
|
||
</div></div></div></body></html> |