|
ArrayObject::setIteratorClassSets the iterator classname for the ArrayObject Description
public void ArrayObject::setIteratorClass(string
$iteratorClass)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 The above example will output:
object(MyArrayIterator)#2 (1) {
["storage":"ArrayIterator":private]=>
object(ArrayObject)#1 (1) {
["storage":"ArrayObject":private]=>
array(4) {
["lemons"]=>
int(1)
["oranges"]=>
int(4)
["bananas"]=>
int(5)
["apples"]=>
int(10)
}
}
}
|