Hi, I am trying to combine two arrays, I also want to remove duplicate values ββfrom the final array.
Here are my arrays 1:
Array ( [0] => stdClass Object ( [ID] => 749 [post_author] => 1 [post_date] => 2012-11-20 06:26:07 [post_date_gmt] => 2012-11-20 06:26:07 )
This is my array 2:
Array ( [0] => stdClass Object ( [ID] => 749 [post_author] => 1 [post_date] => 2012-11-20 06:26:07 [post_date_gmt] => 2012-11-20 06:26:07 )
I use array_merge to merge both arrays into one array. he gives a result similar to this
Array ( [0] => stdClass Object ( [ID] => 749 [post_author] => 1 [post_date] => 2012-11-20 06:26:07 [post_date_gmt] => 2012-11-20 06:26:07 [1] => stdClass Object ( [ID] => 749 [post_author] => 1 [post_date] => 2012-11-20 06:26:07 [post_date_gmt] => 2012-11-20 06:26:07 )
I want to delete this duplicate entry or delete it before merging ... Please help .. Thank you !!!!!!!
arrays php multidimensional-array wordpress
Ravi Nov 20 '12 at 9:10 2012-11-20 09:10
source share