Map the directory tree given by the directory parameter.
public mapTreeMultiple ( string $directory, integer $maxrecursion, $count ) : array | ||
$directory | string | contains the directory path that you want to map. |
$maxrecursion | integer | maximun number of folders to recursive map |
return | array | a multidimensional array containing all subdirectories and their files. For example: Array ( [0] => file_1.php [1] => file_2.php [subdirname] => Array ( [0] => file_1.php ) ) |