Skip to content

Kirby 4.5.0

Str::substr()

A UTF-8 safe version of substr()

Str::substr(?string $string = null, int $start = 0, ?int $length = null): string

Parameters

Name Type Default
$string string|null null
$start int 0
$length int|null null

Return type

string

Parent class

Kirby\Toolkit\Str