PHP 5, PHP 7, PHP 8
simplexml_load_string - Interprets a string of XML into an object
Code Examples

Example #1 Interpret an XML string

Result: SimpleXMLElement Object ( [title] => Forty What? [from] => Joe [to] => Jane [body] => I know that's the answer -- but what's the question? )
PHP Version:

Function simplexml_load_string:

SimpleXML Functions

Most used PHP functions