class FilecontentFilterIterator extendsMultiplePcreFilterIterator

FilecontentFilterIterator filters files by their contents using patterns (regexps or strings).

Methods

bool
accept()

Filters the iterator values.

string
toRegex(string$str)

Converts string to regexp if necessary.

Details

bool accept()

Filters the iterator values.

Return Value

bool

protectedstring toRegex(string$str)

Converts string to regexp if necessary.

Parameters

string $str Pattern: string or regexp

Return Value

string