What I want to do is insert a 47kb csv file into an array in the following method.
CSV Structure:
ID;TEXT;INTEGER;VARCHAR(1)
Example: 1;Random Text;0;Q
But I have multiple id's in the CSV file because this is a question and answer table and for each question the answers have the same ID of the question.
What I pretend to do is to import the CSV file into an array, then search that array for Q in VARCHAR field, then count that to have the number of questions(Q = question, A = answer).
Having the number of questions I will select 5 for example, then get the ID of them and get the answers to compare the right/wrong ones.
At this point I only want to import the CSV file and search for the questions...
How do I import the CSV into an array in a way that I could search for some values after importing?
I hope I detailed everything to be understandable.
Thank you.
OS:Linux
Language:PHP 5.4