function match(
PatternInterface|string $pattern,
string $subject,
int $offset = 0,
array|MatchHandlerFlagInterface|int ...$flags,
): MatchCollection
function matchAll(
PatternInterface|string $pattern,
string $subject,
int $offset = 0,
array|MatchAllHandlerFlagInterface|int ...$flags,
): MatchCollection
function split(
PatternInterface|string $pattern,
string $subject,
int $limit = -1,
array|SplitHandlerFlagInterface|int ...$flags,
): MatchCollection
function grep(
PatternInterface|string $pattern,
array $input,
array|GrepHandlerFlagInterface|int ...$flags,
): MatchCollection
function filter(
PatternInterface|string|array $pattern,
string|array $replacement,
array|string $subject,
int $limit = -1,
?int &$count = null,
): string|array|null
function replace(
PatternInterface|string|array $pattern,
string|array $replacement,
string|array $subject,
int $limit = -1,
?int &$count = null,
): string|array|null