IteratorAggregate (interface)
The IteratorAggregate interface
Introduction
(PHP 5 >= 5.0.0, PHP 7)
Interface to create an external Iterator.
Interface synopsis
IteratorAggregate extends Traversable {
/* Methods */
abstract public Traversable getIterator ( void )}
Example #1 Basic usage
<?php class myData implements IteratorAggregate { public $property1 = "Public