|
MediaWiki master
|
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 20 of file ExplodeIterator.php.
| Wikimedia\StringUtils\ExplodeIterator::__construct | ( | $delim, | |
| $subject ) |
Construct a DelimIterator.
| string | $delim | |
| string | $subject |
Definition at line 47 of file ExplodeIterator.php.
References Wikimedia\StringUtils\ExplodeIterator\rewind().
| Wikimedia\StringUtils\ExplodeIterator::current | ( | ) |
Definition at line 80 of file ExplodeIterator.php.
| Wikimedia\StringUtils\ExplodeIterator::key | ( | ) |
Definition at line 88 of file ExplodeIterator.php.
| Wikimedia\StringUtils\ExplodeIterator::next | ( | ) |
Definition at line 92 of file ExplodeIterator.php.
| Wikimedia\StringUtils\ExplodeIterator::refreshCurrent | ( | ) |
Definition at line 64 of file ExplodeIterator.php.
| Wikimedia\StringUtils\ExplodeIterator::rewind | ( | ) |
Definition at line 58 of file ExplodeIterator.php.
Referenced by Wikimedia\StringUtils\ExplodeIterator\__construct().
| Wikimedia\StringUtils\ExplodeIterator::valid | ( | ) |
Definition at line 106 of file ExplodeIterator.php.