获取最大日期
//日期
$dateArr = ['2023-01-02','2023-02-10','2022-05-11','2023-06-26'];
$maxDate = max($dateArr);
获取最大数值
//数值
$numArr = [5,2,10,3,30,50];
$maxNum = max($numArr);
发布于 2023-06-26 194 次阅读
//日期
$dateArr = ['2023-01-02','2023-02-10','2022-05-11','2023-06-26'];
$maxDate = max($dateArr);
//数值
$numArr = [5,2,10,3,30,50];
$maxNum = max($numArr);
Comments 1 条评论
博客作者 MOMO