mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
19 lines
309 B
Plaintext
19 lines
309 B
Plaintext
|
--TEST--
|
||
|
SimpleXML [profile]: Accessing a simple node
|
||
|
--SKIPIF--
|
||
|
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$root = simplexml_load_string('<?xml version="1.0"?>
|
||
|
<root>
|
||
|
<child>Hello</child>
|
||
|
</root>
|
||
|
');
|
||
|
|
||
|
echo $root->child;
|
||
|
echo "\n---Done---\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
Hello
|
||
|
---Done---
|