Php Objective Questions with Answers for written test exams 18

Question 18
Which of the following functions can be used to sort an array by its keys in

descending order?

A. sort

B. rsort

C. ksort

D. krsort

E. reverse_sort
Answers 18


Answer D is correct.The sort() and rsort() functions operate on values, whereas

ksort() sorts in ascending order and reverse_sort() is not a PHP function.

  







Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---