← All docs

mb_ereg_search_regs()

Returns the next multibyte regex match and captured groups, preserving numeric and named keys.

mb_ereg_search_regs()

function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array|false

Returns the next multibyte regex match and captured groups, preserving numeric and named keys.

Parameters:

  • $pattern (?string), default null, optional
  • $options (?string), default null, optional

Returns: array|false

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mb_ereg_search_regs is implemented in the compiler, see the internals page.