合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
## has方法 判断键值是否存在 判断集合中是否存在给定的键。 ~~~ $collection = collect(['account_id' => 1, 'product' => 'Desk']); $collection->has('product'); // true $collection->has('name'); // false ~~~