PHP: How to get the Max and Mix value in an Array
It is very simple to get the Max and Min value in an array, with a built in function .
$Array = [3,4,1,2];
$Max = max($Array); // to get the highest value in that array '4'
$Min = min($Array); // to get the lowest value in that array '1'