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 |
$start | int |
|
$length | int |
null |
Return type
string