blob: 14f1c5fe8886cce91729d4ef2192a08b11e0d14d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
SimpleXML [profile]: Accessing an attribute
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php
$root = simplexml_load_string('<?xml version="1.0"?>
<root>
<child attribute="Sample" />
</root>
');
echo $root->child['attribute'];
echo "\n---Done---\n";
?>
--EXPECT--
Sample
---Done---
|