Sorting a 3D array
Posted: Wed Apr 18, 2007 9:08 am
I have an array that looks like:
I want to sort the array descendingly by the values in $array['b'] but I want all the other values to sorted along with those.
I understand that my description isn't very good and please let me know if you don't understand.
Regards,
Code: Select all
$array['a'][0] = 120;
$array['b'][1] = 130;
$array['c'][2] = 140;
$array['a'][0] = 150;
$array['b'][1] = 160;I understand that my description isn't very good and please let me know if you don't understand.
Regards,