Re: SimpleXMLIterator

From: Date: Sun, 29 Aug 2004 02:37:45 +0000
Subject: Re: SimpleXMLIterator
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-12455@lists.php.net to get a copy of this message
On Sat, 28 Aug 2004, Mathieu Bruneau wrote: > I have been playing with the SPL lately and today I ended up playing > with the SimpleXMLIterator. > [snip] > Example: > <?php > > $xml = "<test><test1>Here we > are</test1><test2>There</test2></test>"; > > $it = new SimpleXMLIterator($xml); foreach ($it as $k => $v) print "$k: $v\n"; test1: Here we are test2: There -adam -- adam@trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today!

« previous php.internals (#12455) next »