Display the drop-down list

simplexml_load_string()

« similar_text | sin »
<?php
$SimpleXMLElement 
simplexml_load_string (
    
// string $data
    
?// [string $class_name = "SimpleXMLElement"]
    
?// [int $options = 0]
    
// [string $ns = ""]
    
?  // [bool $is_prefix = false]
);

// shows the xml object
$string print_r($SimpleXMLElementtrue);
?>
Result
$SimpleXMLElement = 'SimpleXMLElement instance'
$string = 'SimpleXMLElement Object
(
    [title] => Forty What?
    [from] => Joe
    [to] => Jane
    [body] => 
          I know that\'s the answer -- but what\'s the question?
         
)
'
Examples
#1 simplexml_load_string  ("<?xml version='1.0'?> <document> <title>Forty What?</title> <from>Joe</from> <to>Jane</to> <body> I know that's the answer -- but what's the question? </body> </document>")
See also
print_r