Click to See Complete Forum and Search --> : How to sort an array using index?


sandia
11-27-2007, 05:12 AM
can any one tell any function where we can sort a array based on its index.
I have an array $arr and I want it to sort depending on price. $arr[$i]['price']

Regards,

Sandia

Lubox
11-27-2007, 10:09 AM
As far as I know/understand, asort() should do the trick.