I have this array:
$myArray = array("0x40x40" => 64, "0x50x40" => 65, "0x60x40" => 66);
Now I want to find the smalles value, in this case its 64 (the first key/value pair). Is there a way other than looping through the array and to compare the values? The smallest value is not always the first and the values are not sorted by the way.
Thanks!
You can use the min() function to get your answer nicely.
echo min(2, 3, 1, 6, 7); // 1or