I have some trouble to get the different array between 2 arrays
Array
(
[0] => Array
(
[CR_id] => 107
[CR_label] => f
[CR_question_id] => 54
[CR_correct] => 1
)
[1] => Array
(
[CR_id] => 121
[CR_label] => C
[CR_question_id] => 54
[CR_correct] => 0
)
)
And my second array
Array
(
[0] => Array
(
[CR_id] => 107
[CR_label] => f
[CR_question_id] => 54
[CR_correct] => 1
)
[1] => Array
(
[CR_id] => 117
[CR_label] => B
[CR_question_id] => 54
[CR_correct] => 0
)
[2] => Array
(
[CR_id] => 121
[CR_label] => C
[CR_question_id] => 54
[CR_correct] => 0
)
)
The result i wish to have is this :
Array(
[0] => Array
(
[CR_id] => 117
[CR_label] => B
[CR_question_id] => 54
[CR_correct] => 0
)
)
I saw functions like array_diff but I don't know how to apply it there because it's a 2 dimensional arrays. Is there a proper way to do that in a recursive method ?