note 92798 added to language.types.resource

From: Date: Mon, 10 Aug 2009 05:40:09 +0000
Subject: note 92798 added to language.types.resource
Groups: php.notes 
Request: Send a blank email to php-notes+get-159258@lists.php.net to get a copy of this message
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 ---- Server IP: 69.147.83.197 Probable Submitter: 71.147.7.213 ---- Manual Page -- http://www.php.net/manual/en/language.types.resource.php Edit -- https://master.php.net/note/edit/92798 Del: integrated -- https://master.php.net/note/delete/92798/integrated Del: useless -- https://master.php.net/note/delete/92798/useless Del: bad code -- https://master.php.net/note/delete/92798/bad+code Del: spam -- https://master.php.net/note/delete/92798/spam Del: non-english -- https://master.php.net/note/delete/92798/non-english Del: in docs -- https://master.php.net/note/delete/92798/in+docs Del: other reasons-- https://master.php.net/note/delete/92798 Reject -- https://master.php.net/note/reject/92798 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159258) next »