Annotation of embedaddon/php/ext/simplexml/tests/profile03.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>