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

-- 
[EMAIL PROTECTED]
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to