← Back
Editing: profile04.phpt
--TEST-- SimpleXML [profile]: Accessing a namespaced element --EXTENSIONS-- simplexml --FILE-- <?php $root = simplexml_load_string('<?xml version="1.0"?> <root xmlns:reserved="reserved-ns"> <reserved:child>Hello</reserved:child> </root> '); echo $root->children('reserved-ns')->child; echo "\n---Done---\n"; ?> --EXPECT-- Hello ---Done---
Save File
Cancel