Basically I need to find the highest value in an array of numbers and then which order that was in. Say the array was (1,2,3,4,5,1,2,3,4) I would need it to return 5, and what order 5 was in. In this case it would be in 5th place out of 9 values.
I've been finding the max via this method:
$value = array(1,2,3,4,5,7,6,1,4,1,3);
$value = max($freq);
In this case I would need the values 7 and 6 (the place in the array) to be logged.