What the best way to take an array with mostly the same (title, code) but different parentDrupalTermId
Array
(
[0] => Array
(
[title] => Camps
[code] => 16
[parentDrupalTermId] => 645
)
[1] => Array
(
[title] => Camps
[code] => 16
[parentDrupalTermId] => 647
)
...
)
and create a new array with munged single entry using an array for parentDrupalTermId
:
Array
(
[0] => Array
(
[title] => Camps
[code] => 16
[parentDrupalTermId] => [645, 647]
)
...
)
This would be only for duplicate (title, code) entries
Thoughts?