阅读(1902)
赞(5)
Laravel 8 containsAll {#collection-method}
2021-07-03 16:54:27 更新
containsAll
方法用于判断指定字符串是否包含指定数组中的所有值:
use Illuminate\Support\Str;
$containsAll = Str::of('This is my name')->containsAll(['my', 'name']);
// true
containsAll
方法用于判断指定字符串是否包含指定数组中的所有值:
use Illuminate\Support\Str;
$containsAll = Str::of('This is my name')->containsAll(['my', 'name']);
// true
Copyright©2023 编程论坛编程论坛| 浙ICP备2024059924号-1|
违法和不良信息举报电话:|举报邮箱:569242693@qq.com