Home » PHP » PHP Sorting Arrays » Question
  1. Which of the functions is used to sort an array in descending order?
    1. dsort()
    2. rsort()
    3. asort()
    4. sort()
    5. None of these
Correct Option: B

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



Your comments will be displayed only after manual approval.