Skip to content

Kirby 3.8.4

Str::beforeEnd()

Removes the given substring or character only from the end of the string

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

Parameters

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

Return type

string

Parent class

Kirby\Toolkit\Str