在线文档教程
PHP
SPL/Iterators

RecursiveRegexIterator (class)

The RecursiveRegexIterator class

Introduction

(PHP 5 >= 5.2.0, PHP 7)

This recursive iterator can filter another recursive iterator via a regular expression.

Class synopsis

RecursiveRegexIterator extends RegexIterator implements RecursiveIterator {

/* Methods */

public __construct ( RecursiveIterator $iterator , string $regex [, int $mode = self::MATCH [, int $flags = 0 , int $preg_flags = 0 ]] )

public RecursiveRegexIterator getChildren ( void )

public bool hasChildren ( void )

/* Inherited methods */

public RecursiveIterator RecursiveIterator::getChildren ( void )

public bool RecursiveIterator::hasChildren ( void )

public bool RegexIterator::accept ( void )

public int RegexIterator::getFlags ( void )

public int RegexIterator::getMode ( void )

public int RegexIterator::getPregFlags ( void )

public string RegexIterator::getRegex ( void )

public void RegexIterator::setFlags ( int $flags )

public void RegexIterator::setMode ( int $mode )

public void RegexIterator::setPregFlags ( int $preg_flags )

}

Table of Contents

  • RecursiveRegexIterator::__construct — Creates a new RecursiveRegexIterator.

  • RecursiveRegexIterator::getChildren — Returns an iterator for the current entry.

  • RecursiveRegexIterator::hasChildren — Returns whether an iterator can be obtained for the current entry.

← RecursiveIteratorIterator::valid

RecursiveRegexIterator::__construct →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/class.recursiveregexiterator.php