Web technologies Questions | PHP Quiz | Set-3 | Question 1
Which inbuilt function in PHP is used to sort the element in Descending order?
(A) sort()
(B) asort()
(C) dsort()
(D) rsort()
Answer: (D)
Explanation: In array sort() is used to sort the array in ascending array while on the other hand rsort() is used to sort the array the element in descending order.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Last Updated :
20 Sep, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...