containsAny
Returns true if the string contains any $needles, false otherwise.
Description
bool containsAny(array $needles, bool $caseSensitive = 1)
By default the comparison is case-sensitive, but can be made insensitive by setting $caseSensitive to false.
Parameters
-
array $needles
SubStrings to look for. - bool $caseSensitive
Whether or not to enforce case-sensitivity.
Return Value
bool
Whether or not $str contains $needle.