PHP line break with file_put_contents()
<p>I can't seem to figure out why the following code doesn't produce a new line in my text file - neither does using \n etc either - any ideas what could be wrong?</p>

<pre><code>    $data = $name . ' | ' . $_POST['comment'] . PHP_EOL;

    //write to file
    $f = file_put_contents('posts.txt', $data, FILE_APPEND);
</code></pre>
