|
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: MyArrayIterator Object ( [lemons] => 1 [oranges] => 4 [bananas] => 5 [apples] => 10 ) |