Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the functions is used to sort an array in descending order?

a) sort()
b) asort()
c) rsort()
d) dsort()

Answer: c
Explanation: The function sort() will sort the arrays in ascending order, the function rsort() will sort arrays in descending order. While the function asort() will sort associative arrays in ascending order, according to the value.

Join The Discussion