I have two arrays. The first array holds these values.
[a] => stdClass Object
    (
        [name] => Chris
        [id] => AaKk4j0abEkJSSxYKKnss2LTZc9BmMDrYmm1TFxkIHR8PSU50OagCsl2pgJjVTm7MrkVBVcJgydJGViRU4HHClyWVm3arL4Y5cdWKyZQHtdltg
    )
[b] => stdClass Object
    (
        [name] => John
        [id] => AaL4_sWesWgGcHsd3eoBB3NDvpekzTQHE1J9zLUJs6zZPY7urzXzuhvA3uWuW0IOGiRJPznFsCIJFzZkm2_vIlSU93njnSwgiJbM1fmI9fUulw
    )
[c] => stdClass Object
    (
        [name] => James
        [id] => AaJ3g8G-nssIY7rhMq6pGMI5989ICREh7_MQ37Vre8oNuaBkO-HFgNUWcH2tZdyFwsWOv_kG4eVliss-FY_HmRFh4gmROJKkFCFKMjzatc_2iw
    )
The second array holds these values.
[d] => stdClass Object
    (
        [id] => 1003880559625244
        [name] => Aftab
    )
[e] => stdClass Object
    (
        [id] => 448636891977424
        [name] => John
    )
[f] => stdClass Object
    (
        [id] => 809530442478820
        [name] => James
    )
[g] => stdClass Object
    (
        [id] => 809530442478820
        [name] => Chris
    )
I'm trying to compare both arrays and get only the values that do not match.
For Example in this case Aftab is the one who is not present in array 1 and is unique.
I have tried doing this with array_diff() function  in PHP but it is giving this error: 
Catchable fatal error: Object of class stdClass could not be converted to string
 
     
     
    