← All docs

mb_ereg_search_pos()

Returns the next multibyte regex match byte offset and length, or false.

mb_ereg_search_pos()

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

Returns the next multibyte regex match byte offset and length, or false.

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_pos is implemented in the compiler, see the internals page.