📜  laravel 采集模式 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:58.175000             🧑  作者: Mango

代码示例1
$mode = collect([['foo' => 10], ['foo' => 10], ['foo' => 20], ['foo' => 40]])->mode('foo');

// [10]

$mode = collect([1, 1, 2, 4])->mode();

// [1]