The RecursiveRegexIterator class

The RecursiveRegexIterator class

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

簡介

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

類摘要

class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator {
/* 繼承的常量 */
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;
/* 繼承的屬性 */
public ?string $replacement = null;
/* 方法 */
public __construct(
    RecursiveIterator $iterator,
    string $pattern,
    int $mode = RecursiveRegexIterator::MATCH,
    int $flags = 0,
    int $pregFlags = 0
)
public hasChildren(): bool
/* 繼承的方法 */
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
}

目錄

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *