title: Parsing a csv file into a php array
body: <p>I want to parse my csv file into an array but the problem is that the delimiter keeps changing and will be specified by the user.So user selects from a dropdown containing \t, \n, , , and | and is stored in $delimiter. </p>
  
  <pre><code>($lineRaw = fgetcsv($handle, 1000, $delimiter))
  </code></pre>
  
  <p>The above given line however doesn't provide an accurate result. Any suggestions on how to go about it?</p>