PHP array problem -


I am writing a script in PHP which compares people based on the number of answers in a survey. I use an array like this:

[ person id ] => Number of answers

10 people To archive one with the closest I am comparing.

I need to know how to get the lowest number of 10 the number of answers and overwrite the number of names and << Em>

> Would not it be easy to sort your array based on the number of answers? Perhaps by just adding a new person, resort to the array and delete the first / last ..


Comments