PHP array_diff only compares missing elements in the second and existing in the first so a full diff is only achieved if compares both ways (a,b) and (b,a) This function uns a full compare and returns difference in an array