Skip to content

Kirby 4.1.2

Str::between()

Returns everything between two strings from the first occurrence of a given string

Str::between(?string $string, string $start, string $end): string

Parameters

Name Type Default
$string * string|null
$start * string
$end * string

Return type

string

Parent class

Kirby\Toolkit\Str