function AbstractString::match
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.
Return value
array All matches in a multi-dimensional array ordered according to flags
2 methods override AbstractString::match()
- AbstractUnicodeString::match in vendor/
symfony/ string/ AbstractUnicodeString.php - Matches the string using a regular expression.
- ByteString::match in vendor/
symfony/ string/ ByteString.php - Matches the string using a regular expression.
File
-
vendor/
symfony/ string/ AbstractString.php, line 404
Class
- AbstractString
- Represents a string of abstract characters.
Namespace
Symfony\Component\StringCode
public abstract function match(string $regexp, int $flags = 0, int $offset = 0) : array;