There are two associative arrays which i need to compare. But both arrays have different number of index keys.
The first array is exclude array and second array has list of user ids. What i need to achieve is that i need to return only items having user_id that are not in array 1. I used array_diff_assoc() but returned wrong array.
Array 1:
Array
(
    [0] => Array
        (
            [a] => Array
                (
                    [user_id] => 10080
                )
        )
    [1] => Array
        (
            [a] => Array
                (
                    [user_id] => 10074
                )
        )
)
Array 2:
Array
(
    [0] => Array
        (
            [a] => Array
                (
                    [mail_id] => 14
                    [user_id] => 10080
                    [error_status] => 0
                    [recipient_type] => I
                )
        )
    [1] => Array
        (
            [a] => Array
                (
                    [mail_id] => 14
                    [user_id] => 10059
                    [error_status] => 0
                    [recipient_type] => I
                )
        )
)
$result = array_diff_assoc($arr1, $arr2);
RESULT:
Array
(
    [0] => Array
        (
            [a] => Array
                (
                    [user_id] => 10080
                )
        )
)
 
     
    