多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# combine方法 将一个集合的值作为「键」,再将另一个数组或者集合的值作为「值」合并成一个集合。 ``` $collection = collect(['name', 'age']); $combined = $collection->combine(['George', 29]); $combined->all(); // ['name' => 'George', 'age' => 29] ```