mb_ereg_search_getregs()
mb_ereg_search_getregs() — Retrieve the result from the last multibyte regular expression match.
Built-in function of PHP 8.5. The manual lists it as available in PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.
Signature
mb_ereg_search_getregs(): array|false
Parameters
This function takes no parameters.
Return value
An array including the sub-string of matched part by last mb_ereg_search(), mb_ereg_search_pos(), mb_ereg_search_regs(). 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 false on error.
Example
The PHP manual ships no example for mb_ereg_search_getregs(); the signature and the parameter table above are the contract.
See also
mb_regex_encoding(), mb_ereg_search_init()
All PHP 8.5 built-in functions
Reference card built from the PHP manual page mb_ereg_search_getregs() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.