阅读(502)
赞(6)
Laravel 8 Str::containsAll() {#collection-method}
2021-07-03 16:54:17 更新
Str::containsAll
方法用于判断指定字符串是否包含指定数组中的所有值:
use IlluminateSupportStr;
$containsAll = Str::containsAll('This is my name', ['my', 'name']);
// true