There are N values in the array, and one of them is the smallest value. How can I find the smallest value most efficiently?
//find the min in an array list of #s $array = array(45,545,134,6735,545,23,434); $smallest = $array[0]; for($i=1; $i