title: How can I calculate the nth percentile from an array of doubles in PHP?
body: <p>I have a large array of doubles and I need to calculate the 75th and 90th percentile values for the array. What's the most efficient way to do this via a function?</p>