Here is my array:
Array ( [nse_h_a] => 2351 [nse_h_b] => 6119 [nse_h_c] => 2496 [nse_h_d] => 402 [nse_h_e] => 180 )
And I want to sort the array by key values not
sort, ksort and krsort dont work.
Is it possible?
Here is my array:
Array ( [nse_h_a] => 2351 [nse_h_b] => 6119 [nse_h_c] => 2496 [nse_h_d] => 402 [nse_h_e] => 180 )
And I want to sort the array by key values not
sort, ksort and krsort dont work.
Is it possible?
Use asort()
.
$isShorted = asort($myArray);