I have currently looking for a function which sort the array in the following order: for example:I have an array
$result=array("dddd"=>2,"ccc"=>4,"ddd"=>5,"pks"=>3,"sss"=>2,"test"=>2);
it should gives this output.
Array
(
[ddd] => 5
[ccc] => 4
[pks] => 3
[dddd] => 2
[sss] => 2
[test] => 2
)
I have tried arsort but it does not give the required output.any help will be appreciated.