1.

Explain different sorting function in PHP?

Answer»
  • 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


Discussion

No Comment Found