- simplexml_load_string: documentation ( source)
- get_class_methods: documentation ( source)
<?php
$xml = simplexml_load_string("<parent><child>The child.</child></parent>");
foreach(get_class_methods($xml) as $method) {
echo $method;
}
echo "Hello world!"
?>