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