← Back
Editing: bug46048.phpt
--TEST-- Bug #46048 (SimpleXML top-level @attributes not part of iterator) --EXTENSIONS-- simplexml --FILE-- <?php $xml = ' <data id="1"> <key>value</key> </data> '; $obj = simplexml_load_string($xml); print_r(get_object_vars($obj)); ?> --EXPECT-- Array ( [@attributes] => Array ( [id] => 1 ) [key] => value )
Save File
Cancel