I have an array like this
array(
45=>5,
42=>4.9,
48=>5,
41=>4.8,
40=>4.9,
34=>4.9,
.....
)
Here is the index userid, and the value is its rating.
Now what I want is the achievement of the percentile for the user, for example, the percentile of 45.48 will be 99 and 42,40,34 will be 97 and 41 will be 94.
How can i achieve this?
source
share