|
RecursiveDirectoryIterator::__constructConstructs a RecursiveDirectoryIterator Description
public RecursiveDirectoryIterator::__construct
( string
$path
[, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO
] )
Constructs a RecursiveDirectoryIterator
for the provided Parameters
Return ValuesReturns the newly created RecursiveDirectoryIterator. Errors/Exceptions
Throws an UnexpectedValueException
if the Examples
Example #1 RecursiveDirectoryIterator example
<?php 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
|