title: Parsing CSV in PHP and trying to keep line breaks in field contents
body: <p>I have a csv file in which one of the columns there are line breaks.  The column is a description field so it stores lines of text, bulleted points, and most importantly line breaks--and sometimes two between paragraphs. To complicate matters, the description field also contains quotes.</p>
  
  <p>I have tried everything I know to get the content (and keeping the formatting) into a variable.  I have tried file_get_contents, str_getcsv and fgetcsv to no avail. One of the functions let me put the entire description field into a variable, but it stripped all the new lines, so everything is in one giant paragraph.  Another one separately parsed each paragraph within the description field, instead of one single unit.</p>
  
  <p>This is the general format of my csv file:</p>
  
  <pre><code>"391","The Great Gatsby","The Great Gatsby, F. Scott Fitzgerald’s third book, stands as the supreme achievement of his career. 
  
  This exemplary novel of the Jazz Age has been acclaimed by generations of readers. The story of the fabulously wealthy Jay Gatsby and his love for the beautiful Daisy Buchanan, of lavish parties on Long Island at a time when The New York Times noted “gin was the national drink and sex the national obsession,” it is an exquisitely crafted tale of America in the 1920s.
  
  The Great Gatsby is one of the great classics of twentieth-century literature.","No","Yes",
  </code></pre>
  
  <p>I'd like to have a variable where <code>$array[0]=391</code>, <code>$array[1]=The Great Gatsby</code> and most importantly <code>$array[2]</code> contains the text in the description with all the line breaks and formatting, including the quotes within the field itself.</p>
  
  <p>Or if there's a better way to parse this using PHP, please let me know.</p>