PHP - Merging two arrays into one array (also Remove Duplicates)

后端 未结 6 1137
野的像风
野的像风 2020-11-27 02:51

Hi I\'m Trying to merge two arrays and also want to remove duplicate values from final Array.

Here is my Array 1:

Array
    (
    [0] => stdClass          


        
6条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 02:59

    try to use the array_unique()

    this elminates duplicated data inside the list of your arrays..

提交回复
热议问题