1
Good morning,
I am having the following difficulty, currently my array returns as follows:
array(2) {
[0]=>
array(1) {
["name"]=>
string(8) "Vermelho"
}
[1]=>
array(1) {
["name"]=>
string(7) "Azul"
}
}
The above example is bad to work because one array is apparently inside another. I would like the return to be something like:
array(7) {
[0]=>
string(8) "Vermelho"
[1]=>
string(7) "Morango"
[2]=>
string(5) "Maça"
[3]=>
string(5) "Amora"
[4]=>
string(7) "Amarelo"
[5]=>
string(6) "Banana"
[6]=>
string(7) "Damasco"
}
How to work with an array so that it stays the way above and not 1 array inside the other?
How is it that you are mounting the first array?
– adventistaam