Annotation of embedaddon/php/ext/simplexml/tests/profile02.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SimpleXML [profile]: Accessing an array of subnodes
                      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>Hello</child>
                     10:  <child>World</child>
                     11: </root>
                     12: ');
                     13: 
                     14: foreach ($root->child as $child) {
                     15:        echo "$child ";
                     16: }
                     17: echo "\n---Done---\n";
                     18: ?>
                     19: --EXPECT--
                     20: Hello World 
                     21: ---Done--- 

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