← All docs

mb_ereg_match()

Tests whether a regex pattern matches the beginning of a string (multibyte).

mb_ereg_match()

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

Tests whether a regex pattern matches the beginning of a string (multibyte).

Parameters:

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

Returns: bool

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.