Open In App

Web technologies Questions | PHP Quiz | Set-3 | Question 1

Like Article
Like
Save
Share
Report

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
Previous
Next
Share your thoughts in the comments
Similar Reads