StreamManager
v0.1.1
PHP stream manager
|
Interface for external iterators or objects that can be iterated themselves internally. More...
Public Member Functions | |
current () | |
key () | |
next () | |
rewind () | |
valid () | |
Interface for external iterators or objects that can be iterated themselves internally.
Definition at line 11 of file Iterator.php.
Iterator::current | ( | ) |
Returns the current element.
mixed | Current element. |
Iterator::key | ( | ) |
Returns the key of the current element.
scalar | Returns scalar on success, or null on failure. |
E_NOTICE
on failure.Iterator::next | ( | ) |
Moves the current position to the next element.
Iterator::rewind | ( | ) |
Rewinds back to the first element of the Iterator.
Iterator::valid | ( | ) |
Checks if current position is valid.
This method is called after Iterator::rewind() and Iterator::next() to check if the current position is valid.
bool | true if the current position is valid, false otherwise. |
false
, the foreach loop will be terminated.