PHP里获取一维数组里的最大值和最小值
<?php
$arr = ['10','100','50','90','2','5'];
$min = min($arr);
$max = max($arr);
echo $min.PHP_EOL;
echo $max.PHP_EOL;
<?php
$arr = ['10','100','50','90','2','5'];
$min = min($arr);
$max = max($arr);
echo $min.PHP_EOL;
echo $max.PHP_EOL;