Skip to content

Latest commit

 

History

History
62 lines (56 loc) · 1.14 KB

MethodSignatures.md

File metadata and controls

62 lines (56 loc) · 1.14 KB

Method Signatures

Match

function match(
    PatternInterface|string $pattern,
    string $subject,
    int $offset = 0,
    array|MatchHandlerFlagInterface|int ...$flags,
): MatchCollection

MatchAll

function matchAll(
    PatternInterface|string $pattern,
    string $subject,
    int $offset = 0,
    array|MatchAllHandlerFlagInterface|int ...$flags,
): MatchCollection

Split

function split(
    PatternInterface|string $pattern,
    string $subject,
    int $limit = -1,
    array|SplitHandlerFlagInterface|int ...$flags,
): MatchCollection

Grep

function grep(
    PatternInterface|string $pattern,
    array $input,
    array|GrepHandlerFlagInterface|int ...$flags,
): MatchCollection

Filter

function filter(
    PatternInterface|string|array $pattern,
    string|array $replacement,
    array|string $subject,
    int $limit = -1,
    ?int &$count = null,
): string|array|null

Replace

function replace(
    PatternInterface|string|array $pattern,
    string|array $replacement,
    string|array $subject,
    int $limit = -1,
    ?int &$count = null,
): string|array|null