📜  laravel collection min - PHP 代码示例

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

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

// 10

$min = collect([1, 2, 3, 4, 5])->min();

// 1