1
In certain process of my system, I receive as return of a function a array
of characteristics
and that array
may contain various information, including other information 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 stay inside an array only, for example apartment, would 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 don’t know the names of arrays
that comes within Characteristics
There may be repetitions?
– Jorge B.
No. Both arrays and array elements do not repeat in the same type.
– Ivan Moreira