こんにちは、2 つの配列をマージしようとしていますが、最終的な配列から重複した値を削除したいと考えています。
ここに私の配列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
)
そして、これは私の配列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
)
array_merge
両方の配列を 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
[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
)
これらの重複したエントリを削除したい、またはマージする前にこれらを削除できますか...助けてください..ありがとう!!!!!!!!