helly           Sun Aug 29 06:33:24 2004 EDT

  Modified files:              
    /php-src/ext/spl    spl.php 
  Log:
  Add more docu
  
http://cvs.php.net/diff.php/php-src/ext/spl/spl.php?r1=1.25&r2=1.26&ty=u
Index: php-src/ext/spl/spl.php
diff -u php-src/ext/spl/spl.php:1.25 php-src/ext/spl/spl.php:1.26
--- php-src/ext/spl/spl.php:1.25        Mon May 10 13:26:03 2004
+++ php-src/ext/spl/spl.php     Sun Aug 29 06:33:24 2004
@@ -539,6 +539,13 @@
 
 /** \ingroup SPL
  * \brief recursive SimpleXML_Element iterator
+ *
+ * SimpleXMLIterator implements the RecursiveIterator interface. This allows
+ * to iterator over all elements using foreach or appropriate while construct 
+ * just like SimpleXMLElement does. But using the foreach construct you will
+ * also iterate over the subelements. Because for every element which has sub
+ * elements hasChildren() returns true what results in a call to getchildren()
+ * which then returns the iterator for that sub element.
  */
 class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator
 {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to