Hi I\'m Trying to merge two arrays and also want to remove duplicate values from final Array.
Here is my Array 1:
Array ( [0] => stdClass
Merging two array will not remove the duplicate you can try the below example to get unique from two array
$a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("e"=>"red","f"=>"green","g"=>"blue"); $result=array_diff($a1,$a2); print_r($result);