Skip to content

Kirby 3.9.8

Str::before()

Returns the beginning of a string before the given substring or character

Str::before(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