int ksort (array array [, int
sort_flags])
Sorts an array by key, maintaining key to data correlations. This is useful mainly for associative arrays.
Example 1. Ksort() example
|
This example would display:
fruits[a] = orange
fruits[b] = banana
fruits[c] = apple
fruits[d] = lemon
|
You may modify the behavior of the sort using the optional parameter sort_flags, for details see sort().