摘要: 转自 : https://my.oschina.net/ives/blog/825988 collect提供了大量对数组的处理方法,使处理数组更加方便,以下函数在项目中可以考虑借鉴 一、sum() 用于求和 sum() 示例1.:collect([1,2,3])->sum();//6 示例2.:$l 阅读全文
posted @ 2020-12-15 17:33 php、凯 阅读(677) 评论(0) 推荐(0) 编辑