__toString
Returns the string content of the element.
__toString()
function returns the string content of the element.
This function returns the direct string content in the element, not the string content in the child element of the element!
Returns the string content of the <note> element:
<?php $xml = new SimpleXMLElement ( "<note>Hello <to>George</to><from>John</from>World!</note>" ) ; echo $xml ; ?>
Run the instance
SimpleXMLElement :: __toString ( )