阅读(700)
赞(2)
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 字节宝字节宝| |
违法和不良信息举报电话:|举报邮箱:3111859717@qq.com
