Multiple choice technology

In PHP, arrays may be sorted with which of the following functions?

  1. uksort()

  2. arsort()

  3. ksort()

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

PHP provides multiple sorting functions for different sorting needs. uksort() sorts by keys with a custom comparison, arsort() sorts by values in descending order, and ksort() sorts by keys in ascending order. All three are valid array sorting functions in PHP, making All of the above the correct choice.