recursiveFilePaths.php
Table of Contents
Functions
- recursiveFilePaths() : array<string|int, mixed>
- Recursively retrieves all .php files in a folder (and its subfolders).
Functions
recursiveFilePaths()
Recursively retrieves all .php files in a folder (and its subfolders).
recursiveFilePaths(string $directory[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
- $directory : string
-
The base path of the file to be scanned.
- $options : array<string|int, mixed> = []
-
The optional parameter to send in the function.
- excludes (array) : The enumeration of all files to excludes
- extensions (array) : The optional list of the extensions to use to scan the folder(s).
- maxDepth (int) : The maximum allowed depth. Default -1 is used
- sortable (bool) : Indicates if the list of file paths is sorted before returned.
Tags
Return values
array<string|int, mixed> —The list of the full paths to all files found.