Welcome, Guest
Username: Password: Remember me

TOPIC: get the two largest numbers from an array

get the two largest numbers from an array 1 year 4 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.090 seconds
Donation Image