Hi,

Whenever you implement the Iterator interface the key method should only return a scalar.
Is there any particular reason for this restriction.
IMHO I don't see any.
I also don't see why you can't index an array with object but it smells something going wrong underneath.

Thanks

- Mathieu Suen

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

Reply via email to