title: Should I use \r or \n for explode()ing the contents of a file in PHP?
body: <p>I'm creating a function which can accept a string which is either retrieved through <code>file_get_contents()</code> on a local text file, or something fetched from a url such as <code>http://site.com/338383.txt</code>.</p>
  
  <p>The file will be a tab seperated file, with each item in the file being on its own line. Is it better to use <code>\n</code> or <code>\r</code> to <code>explode()</code> the string and get an array of each line?</p>
  
  <p>I've noticed that in some cases <code>\n</code> doesn't work. I'd like a consistent way which works all the time. Any thoughts?</p>