title: echoing text file from smallest string to largest
body: <p>I have a text file with a new word on every line. Im trying to read it so it echoes the smallest string to largest. Heres my script but its not working!</p>
  
  <pre><code>&lt;?php
  $file = fopen("domains.txt", "r");
  $members = array();
  
  while (!feof($file)) {
  $members[] = fgets($file);
  }
  
  fclose($file);
  arsort($members);
  var_dump($members);
  ?&gt;
  </code></pre>