What is the use of PHP sort() function?

115. What is the use of PHP sort() function?

  1. Sorts an indexed array
  2. Sorts an associative array
  3. Sorts a multi-dimensional array
  4. Sorts any kind of array

Answer: A) Sorts an indexed array

Explanation:

The PHP function sort() is used to sort an indexed array.

Comments and Discussions!

Load comments ↻






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