← All docs

mb_ereg()

Searches a multibyte string and optionally writes numeric and named captures by reference.

mb_ereg()

function mb_ereg(string $pattern, string $string, mixed $matches = null): bool

Searches a multibyte string and optionally writes numeric and named captures by reference.

Parameters:

  • $pattern (string)
  • $string (string)
  • $matches (mixed), passed by reference, default null, optional

Returns: bool

Availability

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

Internals

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