I’m trying to parse a basic text file in PHP, but not sure where to begin.
The file contains info such as:
You’ll notice that the information I need to capture is split up by new lines. Right now I’m just throwing every new line into a $applicant[] array, but I need to get rid of the preceding text in each line.
I was thinking I probably need to use regex or something to single out just the data I need. Ideas?
Thank you!
Without using regex, you can do this:
Would output something like: