The function used to sort an indexed array in descending order is ________.
- rsort
- sort
- ksort
- asort
The function rsort is used to sort an indexed array in descending order, preserving the key-value associations.
Loading...
Related Quiz
- How can we display the output directly to the browser?
- PHP superglobals are only accessible within functions.
- The main purpose of a constructor in a PHP class is to initialize the object when it is created.
- How can you implement secure password hashing in PHP? Discuss the password_hash() and password_verify() functions.
- Which of the following are true about the if statement in PHP?