|
ArrayObject::setIteratorClassSets the iterator classname for the ArrayObject. Description
public void ArrayObject::setIteratorClass
( string
$iterator_class
)Sets the classname of the array iterator that is used by ArrayObject::getIterator(). Parameters
Return ValuesNo value is returned. Examples
Example #1 ArrayObject::setIteratorClass example
<?phpThe above example will output:
MyArrayIterator Object
(
[lemons] => 1
[oranges] => 4
[bananas] => 5
[apples] => 10
)
|