2
If I have an array:
Array
(
    [0] => Array
        (
            [color] => azul
        )
    [1] => Array
        (
            [color] => branca
        )
    [2] => Array
        (
            [color] => prata
        )
    [3] => Array
        (
            [color] => preta
        )
    [4] => Array
        (
            [color] => roxa
        )
    [5] => Array
        (
            [color] => vermelha
        )
)
And another:
Array
(
    [0] => Array
        (
            [COUNT(color)] => 3
        )
    [1] => Array
        (
            [COUNT(color)] => 1
        )
    [2] => Array
        (
            [COUNT(color)] => 1
        )
    [3] => Array
        (
            [COUNT(color)] => 6
        )
    [4] => Array
        (
            [COUNT(color)] => 1
        )
    [5] => Array
        (
            [COUNT(color)] => 6
        )
)
And I want to interact with them Leaving them like this:
Array
(
    [0] => Array
        (
            [color] => azul
            [COUNT(color)] => 3
        )
    [1] => Array
        (
            [color] => branca
        )
    [2] => Array
        (
            [color] => prata
            [COUNT(color)] => 3
        )
    [3] => Array
        (
            [color] => preta
            [COUNT(color)] => 3
        )
    [4] => Array
        (
            [color] => roxa
            [COUNT(color)] => 3
        )
    [5] => Array
        (
            [color] => vermelha
            [COUNT(color)] => 3
        )
)
Or maybe otherwise because I need to use both values in 1 foreach declaring, (color name) and next (quantity).
In php? which language?
– rray
What language would that be?
– CypherPotato
Ah forgot to say PHP
– Léo Soares Fontoura