Is there a function or shortcut to find the position an array item is in when using the max() function?
For example, if I have an array that goes $array = array(1,2,5,123,45,23) and I use max($array), it will return 123 which is in position 3 in the array, but is there a function to get that position?
Thanks.