Skip to content

Kirby 4.5.0

Str::endsWith()

Checks if a string ends with the passed needle

Str::endsWith(?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