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