sort: This function sorts an array. Elements will be arranged from lowest to highest when this function has completed.
rsort: Sort an array in reverse order.
arsort : Sort an array in reverse order and maintain index association. This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant.
asort : Sort an array and maintain index association...This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant.
krsort : Sort an array by key in reverse order..Sorts an array by key in reverse order, maintaining key to data correlations. This is useful mainly for associative arrays.
ksort : Sort an array by key, Sorts an array by key, maintaining key to data correlations. This is useful mainly for associative arrays.
uksort : Sort an array by keys using a user-defined comparison function..uksort() will sort the keys of an array using a user-supplied comparison function. If the array you wish to sort needs to be sorted by some non-trivial criteria, you should use this function.
usort : Sort an array by values using a user-defined comparison function..This function will sort an array by its values using a user-supplied comparison function. If the array you wish to sort needs to be sorted by some non-trivial criteria, you should use this function.

No comments:
Post a Comment