SyntaxFix
Write A Post
Hire A Developer
Questions
$arr = array(); foreach($old_arr as $key => $item) { $arr[$item['id']][$key] = $item; } ksort($arr, SORT_NUMERIC);