I want to sort this array descending by the numbers:
$work = array(
"a" => array('news' => 5, 'comment' => 2, 'google' => 10),
"z" => array('news' => 4, 'free' => 67),
"c" => array('comment' => 6, 'news' => 12),
"e" => array('article' => 1, 'w3' => 15),
"b" => array('news' => 2),
);
The order of the elements should be:
$work['z']['free'] = 67
$work['w']['w3'] = 15
$work['c']['news'] = 12
$work['a']['google'] = 10
.................
$work['e']['article'] = 1
Can i use array_multisort or i have to modify my array ?
Thanks.