title: how to convert php array to xml
body: <p>I have php array like below</p>
  
  <pre><code>$row = array (
    'name' =&gt; 'david',
   'bio' =&gt; 'good man'
   );
  </code></pre>
  
  <p>i want to convert this array to corresponding XML page like scenario below.</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;note&gt;
     &lt;name&gt;david&lt;/name&gt;
     &lt;bio&gt;good man&lt;/bio&gt;
  &lt;/note&gt;
  </code></pre>