On Mon, 20 Jun 2011, Johannes Schlüter wrote:

> On Mon, 2011-06-20 at 13:27 +0200, Robert Eisele wrote:
> > foreach() has many functions, looping over arrays, objects and implementing
> > the iterator interface. I think it's also quite intuitive to use foreach()
> > for strings, too.
> 
> I would prefer a TextIterator as we had in the old PHP 6 as this allows
> more powerful filtering etc. using iterator semantics even though this
> might be a bit slower.

I think TextIterator is another good addition, but it will make PHP 
depend on ICU. Therefore, I think just a foreach for strings seems 
valuable to me.

Derick
-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to