This should be really simple, but what is the way to go on this. I want to sort an multidimensional array by a key, like this:
Array ( [0] => Array (
Try this : Using array_multisort
array_multisort
$sort = array(); foreach($your_array as $k=>$v) { $sort['status'][$k] = $v['status']; } array_multisort($sort['status'], SORT_DESC, $your_array); echo ""; print_r($your_array);
"; print_r($your_array);
Ref: http://php.net/manual/en/function.array-multisort.php