File_Find::mapTreeMultiple()

File_Find::mapTreeMultiple() -- create a recursive view map for a directory

Synopsis

require_once 'File/Find.php';

array &File_Find::mapTreeMultiple (string $directory [, integer $maxrecursion = 0 [, integer $count = 0]])

Description

Map the directory tree given by the directory_path parameter. Depending on maxrecursion you get the content of the directory and the content of the subdirectories too.

Parameter

Return value

array - a multidimensional array containing all subdirectories and their files

Note

This function can be called statically.

Example