Sorting functions in PHP:
asort()— Sort an array in alphabatical order and maintain index association.
arsort()— Sort an array in reverse order and maintain index association.
ksort()- Sort an array by key
krsort()- Sort an array by key in reverse order
usort()- Sort an array by values using a user-defined comparison function
uksort()- Sort an array by key using a user-defined comparison function
uasort() — Sort an array with a user-defined comparison function and maintain index association
sort() — Sort an array
natsort() — Sort an array using a "natural order" algorithm
rsort() — Sort an array in reverse order
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment