PHP | FilesystemIterator __construct() Function
The FilesystemIterator::__construct() function is an inbuilt function in PHP which is used to construct a new filesystem iterator. Syntax: public FilesystemIterator::__construct( string $path, int $flags ) Parameters: This function accepts two parameters as mentioned above and described below: $path