Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: get the two largest numbers from an array

get the two largest numbers from an array 3 years 3 months ago #96339

i have six result equation question types, how would i write an equation to the the two largest of those six?

my first thought is to use the asort php function. i see that it is not supported natively so there is a custom javascript function that will produce the same results and i see how to add asort to the em_core_helpler.php file, but i cant figure out how to construct the array in the first place. then i am not sure how to get the first two elements in the array for use in other equations.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.330 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form