NoRewindIterator::__constructConstruct a NoRewindIterator Description
public NoRewindIterator::__construct(Iterator
$iterator )Constructs a NoRewindIterator. Parameters
Examples
Example #1 NoRewindIterator::__construct example The second loop does not output because the iterator is only used once, as it does not rewind.
The above example will output something similar to: Fruit A: apple banana cranberry Fruit B: See Also
|