Source of: /manual/en/function.mb-ereg-search-getregs.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mbstring.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.mb-ereg-search-getregs.php',
1 => 'mb_ereg_search_getregs',
),
'up' =>
array (
0 => 'ref.mbstring.php',
1 => 'Multibyte String Functions',
),
'prev' =>
array (
0 => 'function.mb-ereg-search-getpos.php',
1 => 'mb_ereg_search_getpos',
),
'next' =>
array (
0 => 'function.mb-ereg-search-init.php',
1 => 'mb_ereg_search_init',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.mb-ereg-search-getregs" class="refentry">
<div class="refnamediv">
<h1 class="refname">mb_ereg_search_getregs</h1>
<p class="verinfo">(PHP 4 >= 4.2.0, PHP 5)</p><p class="refpurpose"><span class="refname">mb_ereg_search_getregs</span> — <span class="dc-title">Retrieve the result from the last multibyte regular expression match</span></p>
</div>
<a name="function.mb-ereg-search-getregs.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type">array</span> <span class="methodname"><b>mb_ereg_search_getregs</b></span>
( <span class="methodparam">void</span>
)</div>
<p class="simpara">
Retrieve the result from the last multibyte regular expression match
</p>
</div>
<a name="function.mb-ereg-search-getregs.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">This function has no parameters.</p>
</div>
<a name="function.mb-ereg-search-getregs.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="simpara">
An <a href="language.types.array.php" class="type array">array</a>
including the sub-string of matched part by last
<a href="function.mb-ereg-search.php" class="function">mb_ereg_search()</a>,
<a href="function.mb-ereg-search-pos.php" class="function">mb_ereg_search_pos()</a>,
<a href="function.mb-ereg-search-regs.php" class="function">mb_ereg_search_regs()</a>. If there are some
matches, the first element will have the matched sub-string, the
second element will have the first part grouped with brackets,
the third element will have the second part grouped with
brackets, and so on. It returns <b><tt class="constant">FALSE</tt></b> on error;
</p>
</div>
<a name="function.mb-ereg-search-getregs.notes"></a><div class="refsect1 notes">
<h3 class="title">Notes</h3>
<blockquote><p><b class="note">Note</b>: The internal encoding or the
character encoding specified by <a href="function.mb-regex-encoding.php" class="function">mb_regex_encoding()</a>
will be used as the character encoding for this function.<br /></p></blockquote>
</div>
<a name="function.mb-ereg-search-getregs.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="function.mb-regex-encoding.php" class="function" rel="rdfs-seeAlso">mb_regex_encoding()</a> - Returns current encoding for multibyte regex as string</li>
<li class="member"><a href="function.mb-ereg-search-init.php" class="function" rel="rdfs-seeAlso">mb_ereg_search_init()</a> - Setup string and regular expression for a multibyte regular expression match</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>