PHP 8.1.20 Released!

La classe RecursiveRegexIterator

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

Introduction

Cet itérateur récursif peut filtrer un autre itérateur récursif à l'aide d'une expression rationnelle.

Synopsis de la classe

class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator {
/* Constants héritées */
public const int RegexIterator::USE_KEY;
public const int RegexIterator::INVERT_MATCH;
public const int RegexIterator::MATCH;
public const int RegexIterator::GET_MATCH;
public const int RegexIterator::ALL_MATCHES;
public const int RegexIterator::SPLIT;
public const int RegexIterator::REPLACE;
/* Propriétés héritées */
public ?string $replacement = null;
/* Méthodes */
public __construct(
    RecursiveIterator $iterator,
    string $pattern,
    int $mode = RecursiveRegexIterator::MATCH,
    int $flags = 0,
    int $pregFlags = 0
)
public hasChildren(): bool
/* Méthodes héritées */
public RegexIterator::accept(): bool
public RegexIterator::getRegex(): string
public RegexIterator::setFlags(int $flags): void
public RegexIterator::setMode(int $mode): void
public RegexIterator::setPregFlags(int $pregFlags): void
public FilterIterator::accept(): bool
public FilterIterator::next(): void
public FilterIterator::rewind(): void
public FilterIterator::valid(): bool
public IteratorIterator::next(): void
}

Sommaire

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top