note 95282 modified in simplexml.examples-basic by salathe

From: Date: Tue, 26 Jan 2010 14:19:49 +0000
Subject: note 95282 modified in simplexml.examples-basic by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165310@lists.php.net to get a copy of this message
[Editor's Note: The SimpleXMLIterator class, however, does implement these methods.] While SimpleXMLElement claims to be iterable, it does not seem to implement the standard Iterator interface functions like ::next and ::reset properly. Therefore while foreach() works, functions like next(), current(), or each() don't seem to work as you would expect -- the pointer never seems to move or keeps getting reset. --was-- While SimpleXMLElement claims to be iterable, it does not seem to implement the standard Iterator interface functions like ::next and ::reset properly. Therefore while foreach() works, functions like next(), current(), or each() don't seem to work as you would expect -- the pointer never seems to move or keeps getting reset. http://php.net/manual/en/simplexml.examples-basic.php

« previous php.notes (#165310) next »