Home / CSE MCQs / PHP MCQs :: Discussion

Discussion :: PHP MCQs

  1. Which of the functions is used to sort an array in descending order?
  2. A.
    sort()
    B.
    asort()
    C.
    rsort()
    D.
    dsort()

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    sort() function is used to sort in ascending order where as rsort() meaning reverse sort is used for sorting in descending order.


Be The First To Comment