合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
## except方法:返回排除的元素的集合 返回集合中除了指定键以外的所有项目。 ~~~ $collection = collect(['product_id' => 1, 'price' => 100, 'discount' => false]); $filtered = $collection->except(['price', 'discount']); $filtered->all(); // ['product_id' => 1] ~~~ 与之相反的方法[only](https://ihavenolimitations.xyz/collections/only.md)。