阅读(708)
赞(7)
Laravel 8 startsWith {#collection-method}
2021-07-05 09:43:54 更新
startsWith
用于判断字符串是否以指定值开头:
use Illuminate\Support\Str;
$result = Str::of('This is my name')->startsWith('This');
// true
startsWith
用于判断字符串是否以指定值开头:
use Illuminate\Support\Str;
$result = Str::of('This is my name')->startsWith('This');
// true
Copyright©2023 编程论坛编程论坛| 浙ICP备2024059924号-1|
违法和不良信息举报电话:|举报邮箱:569242693@qq.com