PREG_PATTERN_ORDER
PREG_PATTERN_ORDER = \PREG_PATTERN_ORDER
Represents a string of abstract characters.
Unicode defines 3 types of "characters" (bytes, code points and grapheme clusters). This class is the abstract type to use as a type-hint when the logic you want to implement doesn't care about the exact variant it deals with.
match(string $regexp, int $flags, int $offset) : array
Matches the string using a regular expression.
Pass PREG_PATTERN_ORDER or PREG_SET_ORDER as $flags to get all occurrences matching the regular expression.
string | $regexp | |
int | $flags | |
int | $offset |
All matches in a multi-dimensional array ordered according to flags