File_Find::search()

File_Find::search() -- find matches for a pattern in a directory

Synopsis

require_once 'File/Find.php';

array &File_Find::search (string $pattern, string $dirpath [, string $pattern_type = 'php' [, bool $fullpath = true [, string $match = 'files']]])

Description

Search the directory to find matches for the specified pattern.

Parameter

Return value

array - an array containing all filenames

Note

This function can be called statically.

See

File_Find::glob()