Ive been trying to figure this out for some days now without good results. I have this multidimentional array of objects in PHP (print_r):
Array
(
[3] => Array
(
[0] => stdClass Object
(
[productoId] => 16
)
[1] => stdClass Object
(
[productoId] => 21
)
[2] => stdClass Object
(
[productoId] => 22
)
)
[7] => Array
(
[0] => stdClass Object
(
[productoId] => 16
)
[1] => stdClass Object
(
[productoId] => 21
)
[2] => stdClass Object
(
[productoId] => 22
)
)
[6] => Array
(
[0] => stdClass Object
(
[productoId] => 16
)
[1] => stdClass Object
(
[productoId] => 17
)
)
)
I would like to get the duplicate values that exist in all the arrays, example:
stdClass Object
(
[productoId] => 16
)
But not:
stdClass Object
(
[productoId] => 21
)
Any idea how I can achieve this?