显示下拉菜单

Test of simplexml_load_string() 本页面仅提供英文版本。

Example #1 : test success
Example #1
$input = '<?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>'
$expected_output = $test_output
$test_output = [
  
'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?
         
)
'
,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]