title: Add xml object into another xml object php
body: <p>I have an xml object like this</p>
  
  <pre><code>$obj = simplexml_load_file('/path/to/file.xml');
  </code></pre>
  
  <p>i also create one</p>
  
  <pre><code>$createdObj = new SimpleXMLElement("&lt;testing&gt;&lt;/testing&gt;");
  </code></pre>
  
  <p>What i want is tho put the $obj into the $createdObj</p>
  
  <p>So i get</p>
  
  <pre><code>&lt;testing&gt;
    &lt;fromobj&gt;&lt;/fromobj&gt;
  &lt;/testing&gt;
  </code></pre>