Getting unique values from 2 arrays

前端 未结 7 1933
借酒劲吻你
借酒劲吻你 2020-12-03 11:01

I have 2 arrays that I\'m trying to get the unique values only from them. So I\'m not just trying to remove duplicates, I\'m actually trying to remove both duplicates.

相关标签:
7条回答
  • 2020-12-03 11:45

    see array_diff()

    $output = array_diff($array1, $array2);
    
    0 讨论(0)
提交回复
热议问题