← All docs

mb_ereg_match() — internals

Compiler internals for mb_ereg_match(): lowering path, type checks, and runtime helpers.

mb_ereg_match() — internals

Where it lives

Lowering notes

  • Lowers mb_ereg_match(pattern, subject, options = null) as a start-anchored regex match.
  • The bare delimiter-less pattern and subject use the shared regex string loader. Optional
  • options are passed as a string pair when present, or as (0, 0) for null/omitted options.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_mb_ereg_match

Signature summary

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

What the type checker enforces

  • Arity: takes 2–3 arguments (1 optional).

Cross-references