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