TractorCow\Fluent\Extension\FluentExtension::anyMatch
Helper function to check if the value given is present in any of the patterns.
This function is case sensitive by default.
Signature
protected function anyMatch(string
$value,
array
$patterns )
Parameters
$value
— string- A string value to check against, potentially with parameters (E.g. 'Varchar(1023)')
$patterns
— array- A list of strings, some of which may be regular expressions
Returns
- bool
- True if this $value is present in any of the $patterns