PHP 7.4.24 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 */
const int MATCH = 0;
const int GET_MATCH = 1;
const int ALL_MATCHES = 2;
const int SPLIT = 3;
const int REPLACE = 4;
const int USE_KEY = 1;
/* 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
}

Sommaire

add a note add a note

User Contributed Notes

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