|
RecursiveDirectoryIterator::__constructConstructs a RecursiveDirectoryIterator Beschreibung
public RecursiveDirectoryIterator::__construct
( string
$path
[, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO
] )
Constructs a RecursiveDirectoryIterator
for the provided Parameter-Liste
RückgabewerteReturns the newly created RecursiveDirectoryIterator. Fehler/Exceptions
Throws an UnexpectedValueException
if the Beispiele
Beispiel #1 RecursiveDirectoryIterator example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: 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 Siehe auch
|