php array sorting

  The sort() function is used to sort array cells from low to high.
  The rsort() function is used to sort array elements from high to low.
  The asort() function is used to sort the array cells from low to high and maintain the index relationship.
  The arsort() function is used to sort array cells from high to low and maintain the index relationship.
  The ksort() function is used to sort the array elements from low to high by key name.
  The krsort() function is used to sort the array elements from high to low by key name.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324975058&siteId=291194637