Programming Language Arrays in PHP MCQ Question #2379
Single Choice Not Set

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

ID: #2379 Arrays in PHP MCQ 8,978 views
Question Info
#2379Q ID
Not SetDifficulty
Arrays in PHP MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A sort()
  • B asort()
  • C rsort()
  • D dsort()
Correct Answer

Explanation

sort() function is used to sort in ascending order where as rsort() meaning reverse sort is used for sorting in descending order.

Share This Question

Challenge a friend or share with your study group.