title: How do i convert this content to an array?
body: <p>I have a plain text file which have the list of countries as follows.</p>
  
  <pre><code>United Kingdom
  United States of America
  Abkhazia
  Afghanistan
  Albania
  Algeria
  American Samoa
  Andorra
  Angola
  Anguilla
  Antarctica
  Antigua and Barbuda
  Argentina
  Armenia
  Aruba
  Ashmore and Cartier Islands
  Australia
  Austria
  Azerbaijan
  Bahamas
  Bahrain
  </code></pre>
  
  <p>I want to insert all the values in database for which i need to convert this to an array. i am using the following code for reading the file.</p>
  
  <pre><code>$fileContent = file_get_contents('countries.txt');
  $fileContent = nl2br($fileContent);
  </code></pre>
  
  <p>Now i want to add <code>( , )</code> comma in the end of each line break. so that i can use <code>explode()</code> and convert it into an array. how do i do it?</p>
  
  <p>thank you.</p>