Str::contains()
Checks if a str contains another string
Str::contains(string|null $string, string $needle, bool $caseInsensitive = false): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $string | stringornull |
no default value |
| $needlerequired | string |
no default value |
| $caseInsensitive | bool |
false
|
Return type
bool