title: User fgetcsv with and without quotations around entries
body: <p><strong>Edit:</strong> is there an alternative to fgetcsv?</p>
  
  <p>The code below processes csv files where each entry is in cased by <strong>quotes</strong> and separated by <strong>commas</strong> <code>ex: "Name","Last"</code>... the problem I'm having is sometimes the csv files do not have quotes around each entry and just has the comma to separate it <code>ex: Name,Last</code>. How can I handle both types?</p>
  
  <pre><code>$uploadcsv = "/temp/files/Load15.csv";
         $handle = fopen($uploadcsv, 'r');
         $column_headers = array();
  $row_count = 0;
  while (($data = fgetcsv($handle, 100000, ",")) !== FALSE) {
    if ($row_count==0){
      $column_headers = $data;
    } else {
      print_r($data);
    }
    ++$row_count;
  }
  </code></pre>
  
  <p><strong>this csv works:</strong></p>
  
  <pre><code>"Name","Last"
  "Mike","Aidens"
  "Mike1","Aidens1"
  </code></pre>
  
  <p><strong>this csv does not work:</strong></p>
  
  <pre><code>Name,Last
  Mike,Aidens
  Mike1,Aidens1
  </code></pre>
  
  <p><strong>Edit:</strong> Strange error... I tried a small snippet from the CSV file with no quotations and it worked. Odd then, I try a large piece then the entire CSV content (this is all be paste into a new test.csv file) and it worked. Both files are the same exact size 17,151kb yet the original csv file will not process. There is no trailing spaces or line at the end.</p>