← All docs

mb_ereg_match()

Tests a raw multibyte regex at the string start using the current regex encoding and options.

mb_ereg_match()

function mb_ereg_match(string $pattern, string $string, ?string $options = null): bool

Tests a raw multibyte regex at the string start using the current regex encoding and options.

Parameters:

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

Returns: bool

Availability

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

Internals

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