| 
 | ksortSort an array by key in ascending order Description
   true ksort(array  &$array, int$flags=SORT_REGULAR)
   Sorts  
 
 Parameters
 
 Return Values
   Always returns  Changelog
 
 Examples
 Example #1 ksort example The above example will output: a = orange b = banana c = apple d = lemon 
 Example #2 ksort with int keys The above example will output: 
array(3) {
  [0]=>
  string(5) "First"
  [2]=>
  string(4) "Last"
  [1]=>
  string(6) "Middle"
}
array(3) {
  [0]=>
  string(5) "First"
  [1]=>
  string(6) "Middle"
  [2]=>
  string(4) "Last"
}
See Also
 |