-1
It seems to be simple but could not, I would like to add the following array (are two arrays within one, it is divided with the array_chunk):
$arr = [
[1, 2, 3, 4, 5],
[6, 7, 8, 9, 0]
];
I would like the result to be this:
Array
(
[0] => 7 // 1+6
[1] => 9 // 2+7
[2] => 11 // 3+8
[3] => 13 // 4+9
[4] => 5 // 5+0
)
thank you in advance;
Now describe, please, what happened for the first to turn the second.
– Woss
I didn’t quite understand the problem or the doubt
– David Alves
I appreciate the answers, are two array within one, I would like to add the two to become only one, got with the function I marked as response.
– Denis L. Murara