Re: PHPTAL / HTML_Template_PHPTAL (0.4.7) / GetText / Types
| From: | Richard Wall | Date: | Fri, 21 Mar 2003 01:41:46 +0000 |
| Subject: | Re: PHPTAL / HTML_Template_PHPTAL (0.4.7) / GetText / Types | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14512@lists.php.net to get a copy of this message | ||
Richard Wall wrote:
I think standard types and an iterator interface should be added to pear. I use something similar to your iterator in my IVM package (also included in the zip file). I'd rather use method name 'getIterator()' than 'iterator()' in iterable objects. Another thing I wanted to ask you about is whether you have had any success using the iterator in a for loop rather than a while loop.I'm too tired to follow it at the moment, but this looks like it might be interesting (linked from the php weekly update)... http://marcus-boerger.de/php/ext/spl/spl.phps ...a php5 iterator interface which works with php's foreach and for loops. -RichardW.