<?php $arr = [0=>[id=>105, bla=>"sd"], 1=>[id=>300, bla=>"mvk"]]; $fixed = []; foreach ($arr as $a) { $fixed[$a["id"]] = $a; } unset($arr); var_dump($fixed);
You have javascript disabled. You will not be able to edit any code.