title: Import CSV using PHP not recognising new line characters?
body: <p>I'm working with PHP and CSV files exported from Excel.</p>
  
  <p>My script to read the lines is as follows:</p>
  
  <pre><code>$lineseparator = "\r\n";
  $csvcontent = fread($file,$size);
  
  fclose($file);
  
  foreach(explode($lineseparator,$csvcontent) as $line) {
      print $line."END&lt;br&gt;";
  }
  </code></pre>
  
  <p>However, it doesn't recognised the new lines. If I use a proper symbol such as ; it does. I want to make this as easy as possible for the used, so they can export it from Excel. The trouble is Excel just exports it with new lines instead of symbols.</p>
  
  <p>Why isn't this picking up the new line characters?</p>