I made an array in PHP which holds a bucnh of unix timestamps.
I'm trying to make a function that will return an array containing the indexes of the 3 largest numbers in that array.
For instance, if the largest numbers are located at indexes 3,5 and 8
And if the largest is 5, second largest is 8 and smallest of the three is number 3, I want an array that holds the values (5,8,3) in that order.
And frankly, I don't have a clue how to pull this off. Does anybody know how to do this?