level 1
array_shift和array_pop把数组元素删除了
2021年09月13日 09点09分
2
level 7
拿去试试
$arr = [13,77,54,99,6];
asort($arr);
$newArr = array_values($arr);
$min = $newArr[0];
$max = $newArr[count($arr) - 1];
echo json_encode($newArr).'<br>';
echo $min.'<br>';
echo $max.'<br>';
2021年09月14日 00点09分
3
level 11
// 等你熟练了以后的写法 现在还不可取
$min = min($score);
$max = max($score);
注意:表单的输入框name=fs[] 这样拿到的数据好处理些,有时候写键名好处理些,依据上下环境而定吧。
小尾巴,哼哼
2021年09月14日 16点09分
4
谢谢!涨知识了
2021年09月16日 23点09分