I need some help with array_multisort
(this is php4 only, btw)
$fruits = array (
"a" => array ("or"=>"orange", "ba"=>"banana", "ap"=>"apple"),
"vegie" => array ("ca" => "carrot"));
;
I want the result to be ordered
$array[a][ap]; (apple)
$array[a][ba]; (banana)
$array[a][ca]; (carrot)
$array[a][or]; (orange)
so I am sorting by the 2nd dimention. where the first is always the same.
but I'm not quite sure how to set up the array_multisort command.
I could just define another array and do ksort, but that seems unnecessary.
thanks