Explain different sorting function in PHP?
- sort() - It is used to sort an array in ascending order
- rsort() - It is used to sort an array in descending order
- asort() - It is used to sort an associative array in ascending order, according to the value
- ksort() - It is used to sort an associative array in ascending order, according to the key
- arsort() - It is used to sort an associative array in descending order, according to the value
- krsort() - It is used to sort an associative array in descending order, according to the key
BY Best Interview Question ON 07 Apr 2020