The IteratorIterator class
Introduction
This iterator wrapper allows the conversion of anything that is Traversable into an Iterator. It is important to understand that most classes that do not implement Iterators have reasons as most likely they do not allow the full Iterator feature set. If so, techniques should be provided to prevent misuse, otherwise expect exceptions or fatal errors.
Class synopsis
/* Methods */
__construct
( Traversable $iterator
)
}Table of Contents
- IteratorIterator::__construct — ساخت تکرارکننده از هر چیز قابل گردش
- IteratorIterator::current — دریافت مقدار فعلی
- IteratorIterator::getInnerIterator — دریافت تکرارکننده داخلی
- IteratorIterator::key — دریافت کلید جز فعلی
- IteratorIterator::next — جلو بردن جز بعدی
- IteratorIterator::rewind — برگرداندن به جز ابتدایی
- IteratorIterator::valid — بررسی صحت تکرارکننده
There are no user contributed notes for this page.
