If the array were sorted, it would be an O (1) operation to get min and max values. Min and Max values in an unsorted array is O (N). The only search algorithm which makes sense in thise case is a ...
//Need to get the mid point of array. Use Floor because we always want to round down. $mid = floor($count/2); //If there are an even amount of elements... if (($count ...