Finder::notContains()

Finder|SplFileInfo[] notContains(string $pattern)

Adds tests that file contents must not match.

Strings or PCRE patterns can be used:

$finder->notContains('Lorem ipsum') $finder->notContains('/Lorem ipsum/i')

Parameters

string $pattern A pattern (string or regexp)

Return Value

Finder|SplFileInfo[] The current Finder instance

See also

FilecontentFilterIterator
doc_Symfony
2016-10-28 06:16:54
Comments
Leave a Comment

Please login to continue.