I want to remove duplicate keys from both arrays.
My code is
$arr1[22068] = array('ID' => 22068);
$arr1[22067] = array('ID' => 22067);
$arr2[22068] = array('ID' => 22068);
$arr2[22066] = array('ID' => 22066);
$arr = array_diff($arr1, $arr2);
var_dump($arr); //It outputs null.
The final array should look like this--
$arr[22066] = array('ID' => 22066);
$arr[22067] = array('ID' => 22067);
Any help is highly appreciated.