public function nlist([string
$directory = '.',
[boolean
$recursive = false,
[string
$filter = 'sort']]] )
Parameters
$directory
—
string
The directory, by default is "." the current directory
$recursive
—
boolean
$filter
—
string
A callable to filter the result, by default is asort() PHP function. The result is passed in array argument, must take the argument by reference ! The callable should proceed with the reference array because is the behavior of several PHP sorting functions (by reference ensure directly the compatibility with all PHP sorting functions).