|
RecursiveDirectoryIterator::__constructConstructs a RecursiveDirectoryIterator Description
public RecursiveDirectoryIterator::__construct(string
$directory , int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO)
Constructs a RecursiveDirectoryIterator
for the provided Parameters
Errors/Exceptions
Throws an UnexpectedValueException
if the
Throws a ValueError
if the Changelog
Examples
Example #1 RecursiveDirectoryIterator example
The above example will output something similar to: SubPathName: fruit/apple.xml SubPath: fruit Key: /tmp/fruit/apple.xml SubPathName: stuff.xml SubPath: Key: /tmp/stuff.xml SubPathName: veggies/carrot.xml SubPath: veggies Key: /tmp/veggies/carrot.xml See Also
|