Is it possible to merge the contents of all existing arrays, if the key is already in use - then nothing, and if not - then it must be added from other arrays, but with an empty value
array(3) {
[0]=>
array(4) {
["attributes_3_ru-ru"] => "10"
["attributes_3_en-gb"] => "100"
["attributes_4_en-gb"] => "2222"
["attributes_4_ru-ru"] => ""
}
[1]=>
array(2) {
["attributes_6_ru-ru"] => "10"
["attributes_6_en-gb"] => "100"
}
}
[2]=>
array(2) {
["attributes_4_ru-ru"] => "10"
["attributes_4_en-gb"] => "100"
}
...n
}
output is something like this
array(3) {
[0]=>
array(4) {
["attributes_3_ru-ru"] => "10"
["attributes_3_en-gb"] => "100"
["attributes_4_en-gb"] => "2222"
["attributes_4_ru-ru"] => ""
["attributes_6_ru-ru"] => ""
["attributes_6_en-gb"] => ""
}
[1]=>
array(2) {
["attributes_6_ru-ru"] => "10"
["attributes_6_en-gb"] => "100"
["attributes_3_ru-ru"] => ""
["attributes_3_en-gb"] => ""
["attributes_4_en-gb"] => ""
["attributes_4_ru-ru"] => ""
}
}
[2]=>
array(2) {
["attributes_4_ru-ru"] => "10"
["attributes_4_en-gb"] => "100"
["attributes_6_ru-ru"] => ""
["attributes_6_en-gb"] => ""
["attributes_3_ru-ru"] => ""
["attributes_3_en-gb"] => ""
}
...n
}