FilesystemIterator::__constructConstructs a new filesystem iterator Description
public FilesystemIterator::__construct(string
$directory , int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS)
Constructs a new filesystem iterator from the Parameters
Errors/Exceptions
Throws an UnexpectedValueException
if the
Throws a ValueError
if the Changelog
Examples
Example #1 FilesystemIterator::__construct example
Output of the above example in PHP 8.2 is similar to: . .. apples.jpg banana.jpg example.php Output of the above example prior to PHP 8.2.0 is similar to: apples.jpg banana.jpg example.php See Also
|