max方法

返回给定键的最大值。

$max = collect([['foo' => 10], ['foo' => 20]])->max('foo'); // 20

$max = collect([1, 2, 3, 4, 5])->max(); // 5
Copyright © http://blog.webfsd.com 2018 all right reserved,powered by Gitbook该文件修订时间: 2019-05-21 04:55:26

results matching ""

    No results matching ""