Merge or combine N (6) lines of text in one array repeatedly with php
问题 Need to prepare data from .txt file for importing in database via browser. In the example below, there is .txt file (about 40 000 lines). I need to combine every 6 records in one array (first is always timestamp in the example). So, as I understand, some loop is necessary. Tried to find some examples (too easy) but didn't succeed. I appreciate any help you can provide even some link. .txt example 1=19-10-18 10:02:06 2=+1.313026E+00 l/s 3=+1.671796E-01m/s 4=+1.500691E+02m3 5=+1.501138E+02m3 6=