I would like to compare two array items with php, I think I should use array_intersect_key
but I don't know how I can do that.
Array 1
[1] => obj Object
(
[idobj:protected] => 2
)
[2] => obj Object
(
[idobj:protected] => 1
)
Array 2
[1] => obj Object
(
[idobj:protected] => 1
)