max() 数学函数

第二代 > php > 函数

max(): 求最大值

echo max(1, 3, 5, 6, 7); // 7

多个数字或数组 返回其中的最大值

echo max(array(2, 4, 5)); // 5


©2013-2023 第二代