2
I have this array:
Array
(
    [Bairro] => Array
        (
            [0] => Aberta dos Morros
            [1] => Camaquã
            [2] => Cavalhada
            [3] => Cristal
            [4] => Guarujá
            [5] => HÃpica
            [6] => HÃpica/Jardins do Prado
            [7] => HÃpica/Lagos de Nova Ipanema
            [8] => Ipanema
            [9] => Ipanema/Altos do Ipê
            [10] => Ipanema/Jardim Verde
            [11] => Menino Deus
            [12] => Nonoai
            [13] => Terraville
            [14] => Tristeza
            [15] => Vila Assunção
            [16] => Vila Nova
        )
)
I managed to get it through this script:
$cidades = $others['resultado'];
print_r($cidades);
Now I wanted to extract each value in string form, for example:
Vila Nova simply.
Probably declare a array empty before, make a foreach and then store everything in a variable to get something like:
<a href="/Aberta dos Morros">Aberta dos Morros</a>
<a href="/Cavalhada">Cavalhada</a>
<a href="/Menino Deus">Menino Deus</a>
<a href="/Terraville">Terraville</a>
<a href="/Vila Nova">Vila Nova</a>
Do not understand, you just want to take the value and play on the link? or is there something else? a foreach does not solve?
– rray
Extracting indexes is very different from what you really want to do. So I edited the question and the title.
– Daniel Omine