🌈 搜索
📅  最后修改于: 2022-03-11 14:53:40.254000             🧑  作者: Mango
{ $average = collect([1, 5, 9, 5])->avg(); // Output : 5 $average = collect([10,20,30])->average(); // Output : 10 }