I am have two arrays $A(array of object) and $B
$A =
Array
(
[0] => objval Object
(
[id_groupe] => 51
)
[1] => objval Object
(
[id_groupe] => 46
)
[2] => objval Object
(
[id_groupe] => 52
)
)
$B =
Array(51,46)
I want to return new one , if it's id_groupe
of $A
exisiting in $B
so it will be expected result like this:
Array
(
[0] => objval Object
(
[id_groupe] => 52
)
)
Any could help me?