(PHP 5, PHP 7, PHP 8)
The DirectoryIterator class provides a simple interface for viewing the contents of filesystem directories.
$directory
$suffix
$offset
$class
null
$mode
$useIncludePath
false
$context