| 
 | uksortSort an array by keys using a user-defined comparison function Description
   bool uksort
    ( array  &$array, callable$key_compare_func)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. 
 Parameters
 
 Return Values
   Returns  Examples
 Example #1 uksort example 
<?phpThe above example will output: an apple: 3 a banana: 4 the Earth: 2 John: 1 |