Dir::index()
Read the directory and all subdirectories
Dir::index(string $dir, bool $recursive = false, array|false|null $ignore = [ ], string|null $path = null): array
Parameters
Name | Type | Default | Description |
---|---|---|---|
$dirrequired | string |
no default value | |
$recursive | bool |
false
|
|
$ignore | array orfalse ornull |
[ ]
|
Array of absolute file paths;false to disable Dir::$ignore list(passing null is deprecated) |
$path | string ornull |
null
|
Return type
array