Re: [PHP] {Spam?} Re: [PHP] Anyone using SPL Iterators?

2004-09-22 Thread John Holmes
Curt Zirzow wrote: * Thus wrote John Holmes: A later example implements ArrayAccess and IteratorAggregate and then says you can use count($A), but it doesn't work for my tests. It always returns 1. That example i think is minor mistake. As noted in the example above you have to call pass

[PHP] {Spam?} Re: [PHP] Anyone using SPL Iterators?

2004-09-21 Thread Kevin Waterson
This one time, at band camp, John Holmes [EMAIL PROTECTED] wrote: Is anyone using SPL iterators out there? Any examples you'd like to share that you find useful? Iterating through databases or large files, etc? Just curious what people are using this for before I write some stuff myself. :)

Re: [PHP] {Spam?} Re: [PHP] Anyone using SPL Iterators?

2004-09-21 Thread John Holmes
Kevin Waterson wrote: Is anyone using SPL iterators out there? Any examples you'd like to share that you find useful? Iterating through databases or large files, etc? Just curious what people are using this for before I write some stuff myself. :) I am using them in the current script I am

Re: [PHP] {Spam?} Re: [PHP] Anyone using SPL Iterators?

2004-09-21 Thread Curt Zirzow
* Thus wrote John Holmes: A later example implements ArrayAccess and IteratorAggregate and then says you can use count($A), but it doesn't work for my tests. It always returns 1. That example i think is minor mistake. As noted in the example above you have to call pass -getIterator() to

Re: [PHP] {Spam?} Re: [PHP] Anyone using SPL Iterators?

2004-09-21 Thread Curt Zirzow
* Thus wrote Curt Zirzow: * Thus wrote John Holmes: A later example implements ArrayAccess and IteratorAggregate and then says you can use count($A), but it doesn't work for my tests. It always returns 1. That example i think is minor mistake. As noted in the example above you have