<!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>Returns start point for next regular expression match</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mb-ereg-replace.html">mb_ereg_replace</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-ereg-search-getregs.html">mb_ereg_search_getregs</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-ereg-search-getpos" class="refentry"> <div class="refnamediv"> <h1 class="refname">mb_ereg_search_getpos</h1> <p class="verinfo">(PHP 4 >= 4.2.0, PHP 5)</p><p class="refpurpose"><span class="refname">mb_ereg_search_getpos</span> — <span class="dc-title">Returns start point for next regular expression match</span></p> </div> <div class="refsect1 description" id="refsect1-function.mb-ereg-search-getpos-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><strong>mb_ereg_search_getpos</strong></span> ( <span class="methodparam">void</span> )</div> <p class="simpara"> Returns the start point for the next regular expression match. </p> </div> <div class="refsect1 parameters" id="refsect1-function.mb-ereg-search-getpos-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-function.mb-ereg-search-getpos-returnvalues"> <h3 class="title">Return Values</h3> <p class="simpara"> <span class="function"><strong>mb_ereg_search_getpos()</strong></span> returns the point to start regular expression match for <span class="function"><a href="function.mb-ereg-search.html" class="function">mb_ereg_search()</a></span>, <span class="function"><a href="function.mb-ereg-search-pos.html" class="function">mb_ereg_search_pos()</a></span>, <span class="function"><a href="function.mb-ereg-search-regs.html" class="function">mb_ereg_search_regs()</a></span>. The position is represented by bytes from the head of string. </p> </div> <div class="refsect1 notes" id="refsect1-function.mb-ereg-search-getpos-notes"> <h3 class="title">Notes</h3> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">The internal encoding or the character encoding specified by <span class="function"><a href="function.mb-regex-encoding.html" class="function">mb_regex_encoding()</a></span> will be used as the character encoding for this function.</p></p></blockquote> </div> <div class="refsect1 seealso" id="refsect1-function.mb-ereg-search-getpos-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.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="function.mb-ereg-search-setpos.html" class="function" rel="rdfs-seeAlso">mb_ereg_search_setpos()</a> - Set start point of next regular expression match</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mb-ereg-replace.html">mb_ereg_replace</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-ereg-search-getregs.html">mb_ereg_search_getregs</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>