$a= [
["id"=>1,"age"=>12],
["id"=>2,"age"=>13],
["id"=>3,"age"=>15]
];
$b= [
["id"=>1,"money"=>100],
["id"=>3,"money"=>400],
["id"=>2,"money"=>200]
];
how to merge into an array according to id value matching to form this.
$c=[
["id"=>1,"age"=>12,"money"=>100],
["id"=>2,"age"=>13,"money"=>200],
["id"=>3,"age"=>15,"money"=>400]
];