mirror of
https://github.com/php/php-src.git
synced 2024-10-22 16:57:05 +00:00
7f5b508f26
This will be expanded as issues arise and will be a formal definition (in code) of simplexml's behaviour.
19 lines
309 B
PHP
19 lines
309 B
PHP
--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---
|