Str::match()
Match string against a regular expression and return matches
Parameters
Name | Type | Default | Description |
---|---|---|---|
$string * | string |
– | The string to match |
$pattern * | string |
– | The regular expression |
$flags | int |
0 |
Optional flags for PHP preg_match() |
$offset | int |
0 |
Positional offset in the string to start the search |
Return type
array
|null