Laravel 8 Str::substr()
Str::substr
方法与 php 自带的字符串 stustr
截取函数相同,例如:
use Illuminate\Support\Str;
$converted = Str::substr('The Laravel Framework', 4, 7);
// Laravel
Str::substr
方法与 php 自带的字符串 stustr
截取函数相同,例如:
use Illuminate\Support\Str;
$converted = Str::substr('The Laravel Framework', 4, 7);
// Laravel