Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

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

  • Last Updated : 20 Sep, 2021

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!