title: Read each line of txt file to new array element
body: <p>I am trying to read every line of a text file into an array and have each line in a new element.<br />
  My code so far.</p>
  <pre><code>&lt;?php
  $file = fopen(&quot;members.txt&quot;, &quot;r&quot;);
  while (!feof($file)) {
  
  $line_of_text = fgets($file);
  $members = explode('\n', $line_of_text);
  fclose($file);
  
  ?&gt;
  </code></pre>