Text file into an array?
<p>In php how can I read a text file and get each line into an array?</p>

<p>I found this code which does it somewhat but looks for a = sign  and I need to look for a new line</p>

<pre><code>&lt;?PHP
$file_handle = fopen("dictionary.txt", "rb");
while (!feof($file_handle) ) {
$line_of_text = fgets($file_handle);
$parts = explode('=', $line_of_text);
print $parts[0] . $parts[1]. "&lt;BR&gt;";
}
fclose($file_handle);
?&gt;
</code></pre>
