Skip to content

Kirby 4.4.1

Str::contains()

Checks if a str contains another string

Str::contains(?string $string, string $needle, bool $caseInsensitive = false): bool

Parameters

Name Type Default
$string * string|null
$needle * string
$caseInsensitive bool false

Return type

bool

Parent class

Kirby\Toolkit\Str