length 方法返回指定字符串的长度:
length
use Illuminate\Support\Str; $length = Str::of('Laravel')->length(); // 7Copy
use Illuminate\Support\Str; $length = Str::of('Laravel')->length(); // 7
关闭