Re: Re: PHPTAL / HTML_Template_PHPTAL (0.4.7) / GetText / Types
| From: | Peter Bowyer | Date: | Sun, 23 Mar 2003 08:48:58 +0000 |
| Subject: | Re: Re: PHPTAL / HTML_Template_PHPTAL (0.4.7) / GetText / Types | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14555@lists.php.net to get a copy of this message | ||
At 17:09 22/03/2003 +0100, laurent bedubourg wrote:
The solution (remind me c++ in some ways) solution whould be to use 'for' like what follows : for ($i = $list->iterator(); ! $i->end(); $i->next()) {Sorry if this has already been mentioned (I've just jumped into this thread as I'm no longer on PEAR-General so missed the start) but the Eclipse library has an iterator class that you may want to look at. http://www.sunlight.tmfweb.nl/eclipse/ I'm sure it's not much different from your code, but I thought it worth pointing out, as it may have some feature you didn't think of. Regards, Peter -- Narrow Gauge Heaven - news, photos, railway directory and discussion forums! http://www.narrow-gauge.co.uk Glenbranter - Scottish narrow gauge in 009 http://glenbranter.narrow-gauge.co.uk// stuff with $i->value()}