mb_ereg_search_getpos()
mb_ereg_search_getpos() — Returns start point for next 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_getpos(): int
Parameters
This function takes no parameters.
Return value
mb_ereg_search_getpos() returns the point to start regular expression match for mb_ereg_search(), mb_ereg_search_pos(), mb_ereg_search_regs(). The position is represented by bytes from the head of string.
Example
The PHP manual ships no example for mb_ereg_search_getpos(); the signature and the parameter table above are the contract.
See also
mb_regex_encoding(), mb_ereg_search_setpos()
All PHP 8.5 built-in functions
Reference card built from the PHP manual page mb_ereg_search_getpos() (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.