PHP 8.0.11 Released!

La clase RecursiveRegexIterator

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

Introducción

Este iterador recursivo puede filtrar otro iterador recursivo mediante una expresión regular.

Sinopsis de la Clase

class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator {
/* Constantaes heredadas constants */
const integer MATCH = 0;
const integer GET_MATCH = 1;
const integer ALL_MATCHES = 2;
const integer SPLIT = 3;
const integer REPLACE = 4;
const integer USE_KEY = 1;
/* Métodos */
public __construct(
    RecursiveIterator $iterator,
    string $regex,
    int $mode = self::MATCH,
    int $flags = 0,
    int $preg_flags = 0
)
public hasChildren(): bool
/* Métodos heredados */
public RegexIterator::accept(): bool
public RegexIterator::getRegex(): string
public RegexIterator::setFlags(int $flags): void
public RegexIterator::setMode(int $mode): void
public RegexIterator::setPregFlags(int $preg_flags): void
}

Tabla de contenidos

add a note add a note

User Contributed Notes

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