title: Parse CSV into array and search for values inside that array
body: <p>What I want to do is insert a 47kb csv file into an array in the following method.</p>
  
  <p>CSV Structure:</p>
  
  <p>ID;TEXT;INTEGER;VARCHAR(1)</p>
  
  <p>Example: 1;Random Text;0;Q</p>
  
  <p>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.</p>
  
  <p>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).</p>
  
  <p>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.</p>
  
  <p>At this point I only want to import the CSV file and search for the questions...</p>
  
  <p>How do I import the CSV into an array in a way that I could search for some values after importing?</p>
  
  <p>I hope I detailed everything to be understandable.</p>
  
  <p>Thank you.</p>
  
  <p>OS:Linux</p>
  
  <p>Language:PHP 5.4</p>