File_Find::glob()

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

Synopsis

require_once 'File/Find.php';

array &File_Find::glob (string $pattern, string $dirpath [, string $pattern_type = 'php'])

Описание

Search the directory to find matches for the specified pattern.

Параметр

Возвращаемое значение

array - an array contains all filenames and name of subdirectories, which matches the pattern. Or a PEAR_Error.

Throws

Таблица 39-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
NULL " Cannot open directory " The given directory could not be opend. Check typing and directory permissions. This can not be caused by a competive processing the archive with Archive_Tar

Заметка

Эта функция может быть вызвана статически.

Пример


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ