Home »
MCQs »
PHP MCQs
Which PHP function is used to sort an indexed array in descending order?
116. Which PHP function is used to sort an indexed array in descending order?
- sort_reverse()
- reverse_sort()
- revsort()
- rsort()
Answer: D) rsort()
Explanation:
The PHP function rsort() is used to sort an indexed array in descending order.