This question already has an answer here:
- How can I sort arrays and data in PHP? 10 answers
Is it possible to order the below by the value of the child arrays, eg: age or height?
array (
"John" => array (
"height"=>175,
"weight"=>85,
"age"="24"
),
"Phil" => array (
"height"=>185,
"weight"=>75,
"age"="22"
)
"Jim" => array (
"height"=>195,
"weight"=>140,
"age"="29"
)
)
Eg outputting the order by age would be: Phil, John, Jim.
Is this possible with PHP?
</div>