I have an archive txt in this format.
$line[0] = 50009828720001007029552330034 20181009MG551 0119195102P000000002624400000000000000000000000000000000000000000000000262440000N
In this line I can get many information of a determinated document.
Example: When I use the functions below I can get the number of document, date of document, and another information.
$numDoc[0] = (string)substr($line[0], 46, 5); // THE NUMBER OF DOCUMENT IS 011919
$dateDoc[0] = (string)substr($line[0], 30, 8); // DATE OF DOCUMENT IS 20181009
How I can structure my archive to easy print the information ordered like this.
NUMBER OF DOCUMENT - DATE DOCUMENT
What the easy way to ordered this information, is a small application does not allow user make anything, just upload this archive .txt.
My question is about structure the informations for easy acess, like bellow:
doc1{
number = xxx
date = xxx
generic = xxx
}