Which PHP function is used to sort an associative array in descending order, according to the key?

119. Which PHP function is used to sort an associative array in descending order, according to the key?

  1. sort()
  2. rsort()
  3. ksort()
  4. krsort()

Answer: D) krsort()

Explanation:

The PHP function krsort() is used to sort an associative array in descending order, according to the key.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.