I have 2 array of std objects where i need to filter out array -> stdClass Object -> matching [code] and get final array with unique array -> stdClass Object -> [code] here are examples array #1
Array
(
[0] => stdClass Object
(
[code] => 100
[c_price] => 438
)
[1] => stdClass Object
(
[code] => 1100
[c_price] => 105
)
)
here are examples array #2
Array
(
[0] => stdClass Object
(
[code] => 100
[c_price] => 1250
)
[1] => stdClass Object
(
[code] => 1100
[c_price] => 300
)
[2] => stdClass Object
(
[code] => 4807
[c_price] => 1000
)
)
Expected results i want to get
Array
(
[0] => stdClass Object
(
[code] => 4807
[c_price] => 1000
)
)
i have tried many answers but not found any closer to my problem, i have tried array_unique but it's not working because of std object class, thanks in advance