Home »
MCQs »
PHP MCQs
What is the use of PHP sort() function?
115. What is the use of PHP sort() function?
- Sorts an indexed array
- Sorts an associative array
- Sorts a multi-dimensional array
- Sorts any kind of array
Answer: A) Sorts an indexed array
Explanation:
The PHP function sort() is used to sort an indexed array.