array
&File_Find::search (
string $pattern
,
string $dirpath
,
string $pattern_type = 'php'
,
bool $fullpath = true
,
string $match = 'files'
)
ディレクトリ内で指定したパターンにマッチするものを検索します。
$pattern
-
ディレクトリを検索する際のパターンを含む文字列を指定します
$dirpath
-
検索するディレクトリパスを含む文字列を指定します
$pattern_type
-
使用するパターンマッチング関数を含む文字列を指定します
('php'、'perl' もしくは 'shell' のいずれかが指定可能です)。
$pattern
のフォーマットは、
$pattern_type
の値に依存します。
詳細な情報は、
検索方法
を参照ください。
$fullpath
-
文字列の検索をフルパスに対して行うのか、
ファイル名に対してのみ行うのかを指定します。
$match
- 'files'、'directories' あるいは
'both' のいずれかで、返すリストの形式を指定します。
array
-
全てのファイル名を含む配列
This function can be called statically.