(PHP 5, PHP 7)
This object supports cached iteration over another iterator.
public __construct ( Iterator $iterator [, int $flags = self::CALL_TOSTRING ] )
public count ( ) : int
public current ( ) : mixed
public getCache ( ) : array
public getFlags ( ) : int
public getInnerIterator ( ) : Iterator
public hasNext ( ) : void
public key ( ) : scalar
public next ( ) : void
public offsetExists ( mixed $index ) : void
public offsetGet ( string $index ) : void
public offsetSet ( mixed $index , mixed $newval ) : void
public offsetUnset ( string $index ) : void
public rewind ( ) : void
public setFlags ( int $flags ) : void
public __toString ( ) : void
public valid ( ) : void}
CachingIterator::CALL_TOSTRINGConvert every element to string.
CachingIterator::CATCH_GET_CHILDDon't throw exception in accessing children.
CachingIterator::TOSTRING_USE_KEYUse key for conversion to string.
CachingIterator::TOSTRING_USE_CURRENTUse current for conversion to string.
CachingIterator::TOSTRING_USE_INNERUse inner for conversion to string.
CachingIterator::FULL_CACHECache all read data.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.cachingiterator.php