(PHP 5, PHP 7)
List files and directories inside the specified path
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.
sorting_order
By default, the sorted order