Rank Average with PHP
问题 In Excel there's a function Rank Average (see documentation). I wish to do the same in PHP. Looking online, I find a lot of ranking solutions, but not a lot of those take duplicates into account and when they do, the result I get is not the same as Excel is giving me at all. It's very important it does though. Ideally, what I'd need is a function that requires a score and array to compare it with, and give me the rank for it. Example with some actual date from Excel: $array = array(5.80,6.00