MediaWiki REL1_41
|
An iterator which works exactly like: More...
Inherits Iterator.
Public Member Functions | |
__construct ( $delim, $subject) | |
Construct a DelimIterator. | |
current () | |
key () | |
next () | |
refreshCurrent () | |
rewind () | |
valid () | |
An iterator which works exactly like:
foreach ( explode( $delim, $s ) as $element ) { ... }
Except it doesn't use 193 byte per element
Definition at line 30 of file ExplodeIterator.php.
ExplodeIterator::__construct | ( | $delim, | |
$subject ) |
Construct a DelimIterator.
string | $delim | |
string | $subject |
Definition at line 57 of file ExplodeIterator.php.
References rewind().
ExplodeIterator::current | ( | ) |
Definition at line 90 of file ExplodeIterator.php.
ExplodeIterator::key | ( | ) |
Definition at line 98 of file ExplodeIterator.php.
ExplodeIterator::next | ( | ) |
Definition at line 105 of file ExplodeIterator.php.
ExplodeIterator::refreshCurrent | ( | ) |
Definition at line 74 of file ExplodeIterator.php.
ExplodeIterator::rewind | ( | ) |
Definition at line 68 of file ExplodeIterator.php.
Referenced by __construct().
ExplodeIterator::valid | ( | ) |
Definition at line 122 of file ExplodeIterator.php.