我有2个数组:
$big_array = array (
array (
array (
'correct' => FALSE,
'answer' => 'false answer1'
),
array (
'correct' => FALSE,
'answer' => 'false answer2'
),
array (
'correct' => FALSE,
'answer' => 'false answer3'
),
array (
'correct' => TRUE,
'answer' => 'correct answer'
)
)
);
$small_array = array (
array (
array (
'correct' => FALSE,
'answer' => 'false answer1'
)
)
);
我想做,array_diff($big_array, $small_array)
但它没有按照我想要的方式工作,目前它给了我一个空数组,我希望结果是:
$outcome_array= array (
array (
array (
'correct' => FALSE,
'answer' => 'false answer2'
),
array (
'correct' => FALSE,
'answer' => 'false answer3'
),
array (
'correct' => TRUE,
'answer' => 'correct answer'
)
)
);
有什么建议么?