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