scandir
scandir
(PHP 5, PHP 7)
scandir — List files and directories inside the specified path
Description
array scandir ( string $directory [, int $sorting_order = SCANDIR_SORT_ASCENDING [, resource $context ]] )
Returns an array of files and directories from the directory
.
Parameters
-
directory
-
The directory that will be scanned.