In case of csv file we have fgetcsv
in php to parse and get the output but in my case file is .dat
and I need to parse it and store it into MySQL Database and so do we have any built in function in php like fgetcsv
that can work in similar fashion on .dat
file ?
Here is the sample value, it has headers DF_PARTY_ID;DF_PARTY_CODE;DF_CONNECTION_ID and its value as mentioned under.
Sample Data:
DF_PARTY_ID;DF_PARTY_CODE;DF_CONNECTION_ID
87961526;4002524;13575326
87966204;4007202;13564782