Match()
Match(string $input, string $pattern, $options = PREG_PATTERN_ORDER, $flags = null) : string
Searches the input string for the first occurrence of the specified regular expression, using the specified matching options.
Parameters
string | $input | The string to search for a match. |
string | $pattern | The regular expression pattern to match. |
$options | ||
$flags |
Returns
string —An object that contains information about the match.