Is there a built in PHP function that will allow you get the minimum and maximum values from a PHP array?
If not, what's the most efficient way of doing this for the general case?
min and max.
$array = array(1, 2, 3);
$min = min($array);
$max = max($array);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With