title: Save array as xml
body: <pre><code>array(
  name =&gt; text,
  surname =&gt; text,
  country =&gt; text,
  date =&gt; text
  )
  </code></pre>
  
  <p><strong>1) How can I save this array to file as xml file?</strong></p>
  
  <p><strong>2) How to read this file then as array?</strong></p>