In a given process in my system, I get a array
of characteristics
as a return from a function, and this array
can contain several information, including other arrays
with different names for each type of information. Ex:
Apartamento:
Characteristics => [
["external_area"]=>
array(5) {
[0]=> "varanda"
[1]=> "lavanderia"
[2]=> "piscina"
[3]=> "muros"
[4]=> "area_serviço"
}
["bedroom"]=>
array(12) {
[0]=> "piso_frio"
[1]=> "alvenaria"
[2]=> "azulejo_teto"
[3]=> "massa_corrida"
}
]
Casa:
Characteristics => [
["internal_area"]=>
array(5) {
[0]=> "mesa de madeira"
[1]=> "area"
}
["options"]=>
array(12) {
[0]=> "2 andares"
[1]=> "banheiro externo"
}
]
And I need everything to be inside an array only, for example an apartment, I'd be:
Characeristics => [
[0]=> "varanda"
[1]=> "lavanderia"
[2]=> "piscina"
[3]=> "muros"
[4]=> "area_serviço"
[5]=> "piso_frio"
[6]=> "alvenaria"
[7]=> "azulejo_teto"
[8]=> "massa_corrida"
]
EDIT: Remembering that I do not know the names of arrays
that comes within Characteristics