SimpleXMLElement::__toString
Returns the string content
Description
public string SimpleXMLElement::__toString()
Parameters
This function has no parameters.
Return Values
Returns the string content on success or an empty string on failure.
Examples
Example #1 Get string content
<?php
$xml = new SimpleXMLElement('<a>1 <b>2 </b>3</a>');
echo $xml;
?>
The above example will output: