Is there a PHP built-in function that will allow you to get the min and max values ββfrom a PHP array?
If not, what's the most efficient way to do this for the general case?
min and max .
$array = array(1, 2, 3); $min = min($array); $max = max($array);
Max Min
Yes there is. min () and max ()