$a= ['id'=>1,'name'=>'test']; $b= ['id'=>2,'name'=>'test']; $c= ['id'=>1,'name'=>'test'];
$arr = array_unique(array_merge($a,$b, $c),SORT_REGULAR);