Skip to content

Kirby 5.0.4

Str::between()

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

Str::between(string|null $string, string $start, string $end): string

Parameters

Name Type Default
$string stringornull no default value
$startrequired string no default value
$endrequired string no default value

Return type

string

Parent class

Kirby\Toolkit\Str