返回一组值中的最大值,也可以直接传一个数组。
$value
$values
mixed — 最大值。
mixed
echo max(1, 5, 3); echo ' '; echo max([4, 9, 2]);
5 9