Re: Help with using SPL to build a MySQL Iterator
| From: | Chris | Date: | Wed, 18 May 2005 14:43:10 +0000 |
| Subject: | Re: Help with using SPL to build a MySQL Iterator | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215479@lists.php.net to get a copy of this message | ||
V Kam wrote:
Hello all I was trying to write an SPL Iterator for a MySQL result set but not having any luck. Specifically I'm not sure how to overload the key() and current/next() methods. Does anyone here have a working code sample that does this, or can offer some guidance on how to overload the 5 Iterator methods? Any assistance much appreciated! Thanks! I just put all the code that retrieves the data in the next() function. current() and key() just return the variables that next populated.Don't know what else to say. Chris