int krsort
(array array [, int sort_flags])
Sorts an array by key in reverse order, maintaining key to data correlations. This is useful mainly for associative arrays.
Példa 1. Krsort() example
|
This example would display:
1 2 fruits[d] = lemon 3 fruits[c] = apple 4 fruits[b] = banana 5 fruits[a] = orange 6 |
You may modify the behavior of the sort using the optional parameter sort_flags, for details see sort().