Good night, I have a dilemma, I have tried in many ways but my knowledge with array is still vague, I would like help in the following, I have two arrays, one of them I already solved with a foreach because it was a simple array like this like this model
$data_content = Array
(
0 => null,
1 => 'Fye Flourigh',
2 => '+5521888',
3 => null,
4 => null,
5 => null,
6 => null
);
But the second array is pretty weird, I need to make this array2
Array
(
[0] => Array
(
[COLUMN_COMMENT] =>
[0] =>
)
[1] => Array
(
[COLUMN_COMMENT] => Nome do contato
[0] => Nome do contato
)
[2] => Array
(
[COLUMN_COMMENT] => Whatsapp
[0] => Whatsapp
)
[3] => Array
(
[COLUMN_COMMENT] => Email
[0] => Email
)
[4] => Array
(
[COLUMN_COMMENT] => Site
[0] => Site
)
[5] => Array
(
[COLUMN_COMMENT] => Facebook
[0] => Facebook
)
[6] => Array
(
[COLUMN_COMMENT] => Messenger
[0] => Messenger
)
)
is the same as array 1 so I can use
Follow two links to try to understand. this link 1 shows how you should stay link
and this link 2 shows how you are link