こんにちは私は以下に示す多次元のphp配列を持っています、私はこの配列から重複したオブジェクトを削除したかっただけです。とにかくphpでこれを行うのですか?繰り返す必要があるのは、stdClassオブジェクトを削除することだけです。
Array
(
[0] => stdClass Object
(
[term_id] => 5
[name] => 4x4
[slug] => 4x4
[term_group] => 0
[term_taxonomy_id] => 5
[taxonomy] => ptd_vehicle_sub_cat
[description] =>
[parent] => 0
[count] => 2
)
[1] => stdClass Object
(
[term_id] => 4
[name] => Ultra High Performance
[slug] => ultra-high-performance
[term_group] => 0
[term_taxonomy_id] => 4
[taxonomy] => ptd_vehicle_sub_cat
[description] =>
[parent] => 0
[count] => 2
)
[2] => stdClass Object
(
[term_id] => 5
[name] => 4x4
[slug] => 4x4
[term_group] => 0
[term_taxonomy_id] => 5
[taxonomy] => ptd_vehicle_sub_cat
[description] =>
[parent] => 0
[count] => 2
)
[3] => stdClass Object
(
[term_id] => 4
[name] => Ultra High Performance
[slug] => ultra-high-performance
[term_group] => 0
[term_taxonomy_id] => 4
[taxonomy] => ptd_vehicle_sub_cat
[description] =>
[parent] => 0
[count] => 2
)
)