note 92798 deleted from language.types.resource by danbrown
| From: | danbrown@php.net | Date: | Mon, 10 Aug 2009 15:16:14 +0000 |
| Subject: | note 92798 deleted from language.types.resource by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159270@lists.php.net to get a copy of this message | ||
Note Submitter: dr dot bits at gmail dot com
----
wetmonkey's example is a partial implementation of an enumerator (or generator) class. When the
class is initialized (or constructed), it sets-up to return the first entry in the resource, each
call to a particular function returns an entry in the resource, and each entry is only returned once
(False or NULL is returned if there are no more).
A more general example would be useful here