php problems saving array to textfile
<p>Hey guys im trying to save the values into an textfile. I tried different ways and always when i open the textfile all the values are written in one line without space. I want to write each value in its own line here is what i have so far:</p>

<pre><code>    $filename = 'admin_liste.txt';
    $string   = '';

    foreach($arr as $key =&gt; $val) {
    $string .= "$val\n";
    }

    file_put_contents($filename, $string); 
</code></pre>

<p>This writes everything like this in the textfile:
<code>user1user2user3user4</code></p>

<p>But i want it like this:</p>

<ul>
<li>user1</li>
<li>user2</li>
<li>user3</li>
<li>user4</li>
</ul>

<p>Without the "●"</p>
