title: PHP Line break in array
body: <p>I have three HTML form field values (name, saywords, mail) that I try to concat in php and write into one single txt file on my server:</p>
  
  <p>Each value should be on a new line in the txt field, as is why I added the "\n" in the array .... where's my error?</p>
  
  <p>Thanks a lot for any help!</p>
  
  <pre><code>$name = $_POST['name'];
  $saywords = $_POST['saywords'];
  $mail = $_POST['mail'];
  
  $data = array($name,  . "\n" $mail, . "\n" $saywords);
  
  file_put_contents("$t.$ip.txt",$data); // Will put the text to file
  </code></pre>