]> granicus.if.org Git - php/commitdiff
Update docu
authorMarcus Boerger <helly@php.net>
Sun, 20 Jul 2003 12:30:05 +0000 (12:30 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 20 Jul 2003 12:30:05 +0000 (12:30 +0000)
ext/spl/spl.php

index e52a15a214d7bc4a32de0ad838753ed31190967c..4f664d2ffebd8cd118120e42d041aa623da93ec8 100755 (executable)
@@ -141,6 +141,13 @@ interface spl_forward {
 
        /*! \brief Check if more elements are available.
         *
+        * This method is meant to be called right after calls to rewind() or
+        * next(). When you use foreach hooking then this is done automatically
+        * but you can use it inside a for loop yourself:
+        * \code
+          for(; $it->has_more(); $it->next()) { ... }
+          \endcode
+        *
         * \return \c bool whether or not more elements are available
         */
        function has_more();