Reference

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 Description
$string string null
$start int 0
$length int null

Return type

string

Source code

kirby/src/Toolkit/Str.php#L827