title: How to put an array into a file?
body: <p>I do this to get file content into array:</p>
  
  <pre><code>$array = file('sample.txt', FILE_IGNORE_NEW_LINES);
  </code></pre>
  
  <p>How to reverse this? If I have the array already how to write it to a file, each value in a seperate line.</p>