okay, so lemme see if I remember how to ask a question
I have this multi-dimensional array that I need to dynamically sort.
I need to be able to specify to sort by the key of the sub-array
ie.. "1" to sort by Part_number, "4" to sort by Reason, and so on
I also need to go ascending or descending with it. So I looked through
the manual, and saw like 10 different array sort functions, and am kind
of stuck on which one I should use. Hoping someone can nudge me in the right
direction. Was thinking usort(). This the best one for this? Below's a
look at what my array will look like. Thanks
$results =
Array
(
[0] => Array
(
[0] => License_Plate
[1] => Part_Number
[2] => Transaction_Date
[3] => Performed_By
[4] => Reason
)
[1] => Array
(
[0] => License_Plate
[1] => Part_Number
[2] => Transaction_Date
[3] => Performed_By
[4] => Reason
)
)