#这个方法会返回原集合不存在于给定集合中的键值对。...([1, 2, 3, 4, 5])->implode('-'); // '1-2-3-4-5'
#26.intersect方法,从原集合中删除不在给定数组或集合中的任何值,最终#的集合会保留原集合的键...prepend(0, 'zero');
$collection->all(); // ['zero' => 0, 'one' => 1, 'two' => 2]
#47.pull方法,把给定键对应的值从集合中移除并返回...', 100);
$collection->all(); // ['product_id' => 1, 'name' => 'Desk', 'price' => 100]
#50.random方法.从集合中返回一个随机项...#52.reject方法,使用指定的回调过滤集合。如果回调返回 true ,就会把对应的项目从集合中移除。