Answer the question
In order to leave comments, you need to log in
Is it possible to concatenate arrays?
Is it possible to combine the contents of the arrays, if the key is already in use - then nothing, and if not - then you need to add 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
}
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
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question