CachingIterator::getCache Получение содержимого кеша &reftitle.description; public arrayCachingIterator::getCache Получение содержимого кеша. Должен использоваться флаг CachingIterator::FULL_CACHE. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; Массив array содержащий элементы кеша. &reftitle.errors; Выбрасывает BadMethodCallException в случае, если не установлен флаг CachingIterator::FULL_CACHE. &reftitle.examples; Пример использования <methodname>CachingIterator::getCache</methodname> next(); $cache->next(); var_dump($cache->getCache()); $cache->next(); var_dump($cache->getCache()); ?> ]]> &example.outputs; int(1) [1]=> int(2) } array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } ]]>