Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

regexiterator(3) [php man page]

REGEXITERATOR(3)							 1							  REGEXITERATOR(3)

The RegexIterator class

INTRODUCTION
This iterator can be used to filter another iterator based on a regular expression. CLASS SYNOPSIS
RegexIterator RegexIteratorextends FilterIterator Constants o const integer$MATCH0 o const integer$GET_MATCH1 o const integer$ALL_MATCHES2 o const integer$SPLIT3 o const integer$REPLACE4 o const integer$USE_KEY1 Methods o public RegexIterator::__construct (Iterator $iterator, string $regex, [int $mode = self::MATCH], [int $flags], [int $preg_flags]) o public bool RegexIterator::accept (void ) o public int RegexIterator::getFlags (void ) o public int RegexIterator::getMode (void ) o public int RegexIterator::getPregFlags (void ) o public string RegexIterator::getRegex (void ) o public void RegexIterator::setFlags (int $flags) o public void RegexIterator::setMode (int $mode) o public void RegexIterator::setPregFlags (int $preg_flags) Inherited methods o publicabstract bool FilterIterator::accept (void ) o public FilterIterator::__construct (Iterator $iterator) o public mixed FilterIterator::current (void ) o public Iterator FilterIterator::getInnerIterator (void ) o public mixed FilterIterator::key (void ) o public void FilterIterator::next (void ) o public void FilterIterator::rewind (void ) o public bool FilterIterator::valid (void ) PREDEFINED CONSTANTS
REGEXITERATOR OPERATION MODES
o RegexIterator::ALL_MATCHES - Return all matches for the current entry (see preg_match_all(3)). o RegexIterator::GET_MATCH - Return the first match for the current entry (see preg_match(3)). o RegexIterator::MATCH - Only execute match (filter) for the current entry (see preg_match(3)). o RegexIterator::REPLACE - Replace the current entry (see preg_replace(3); Not fully implemented yet) o RegexIterator::SPLIT - Returns the split values for the current entry (see preg_split(3)). REGEXITERATOR FLAGS
o RegexIterator::USE_KEY - Special flag: Match the entry key instead of the entry value. PHP Documentation Group REGEXITERATOR(3)

Check Out this Related Man Page

CACHINGITERATOR(3)							 1							CACHINGITERATOR(3)

The CachingIterator class

INTRODUCTION
This object supports cached iteration over another iterator. CLASS SYNOPSIS
CachingIterator CachingIteratorextends IteratorIteratorOuterIteratorArrayAccessCountable Constants o const integer$CachingIterator::CALL_TOSTRING1 o const integer$CachingIterator::CATCH_GET_CHILD16 o const integer$CachingIterator::TOSTRING_USE_KEY2 o const integer$CachingIterator::TOSTRING_USE_CURRENT4 o const integer$CachingIterator::TOSTRING_USE_INNER8 o const integer$CachingIterator::FULL_CACHE256 Methods o public CachingIterator::__construct (Iterator $iterator, [string $flags = self::CALL_TOSTRING]) o public int CachingIterator::count (void ) o public void CachingIterator::current (void ) o public array CachingIterator::getCache (void ) o public void CachingIterator::getFlags (void ) o public Iterator CachingIterator::getInnerIterator (void ) o public void CachingIterator::hasNext (void ) o public scalar CachingIterator::key (void ) o public void CachingIterator::next (void ) o public void CachingIterator::offsetExists (string $index) o public void CachingIterator::offsetGet (string $index) o public void CachingIterator::offsetSet (string $index, string $newval) o public void CachingIterator::offsetUnset (string $index) o public void CachingIterator::rewind (void ) o public void CachingIterator::setFlags (bitmask $flags) o public void CachingIterator::__toString (void ) o public void CachingIterator::valid (void ) PREDEFINED CONSTANTS
o CachingIterator::CALL_TOSTRING -Convert every element to string. o CachingIterator::CATCH_GET_CHILD -Don't throw exception in accessing children. o CachingIterator::TOSTRING_USE_KEY - Use key for conversion to string. o CachingIterator::TOSTRING_USE_CURRENT - Use current for conversion to string. o CachingIterator::TOSTRING_USE_INNER - Use inner for conversion to string. o CachingIterator::FULL_CACHE -Cache all read data. PHP Documentation Group CACHINGITERATOR(3)
Man Page