title: PHP string to XML file
body: <p>In PHP, i have a <code>$string</code> that contains XML-structured data.</p>
  
  <p>How can i create and save a XML file from <code>$string</code>? </p>
  
  <p>Appreciate any help.</p>