- simplexml_load_string: documentation ( source)
- header: documentation ( source)
<?php $x = simplexml_load_string('<a foo="bar"><kid>Joe</kid></a>');$foo = $x['foo'];unset($foo[0]);$kid = $x->kid;$kid[0] = null;header('Content-Type: text/plain');echo $x->asXML();