I have an "active.txt" file where you can find information blocks
Ex:
SACOLAO CENTER
R RUA PAULINO MENDES LIMA,31
CENTRO
45820440 EUNAPOLIS BA
UNIQUE PISOS E REVESTIMENTOS
R PAULINO MENDES LIMA,84
CENTRO
45820440 EUNAPOLIS BA
ZOO MANIA
AV PAULINO MENDES LIMA,185
ANEXO I - CENTRO
45820970 EUNAPOLIS BA
I would like to read the entire file, and blast by block according to the whitespace between one, and in the future I manipulate the lines of those blocks.
Ex:
$Array[1] = SACOLAO CENTER
R RUA PAULINO MENDES LIMA,31
CENTRO
45820440 EUNAPOLIS BA
And being able to display the rows of these blocks,
echo $Linha[0] = SACOLAO CENTER
echo $Linha[1] = R RUA PAILINO MENDES LIMA, 31
How could this be done?