PHP » GoLang |
login |
register |
about
|
GoLang RecursiveDirectoryIterator::__construct
request it (296)
GoLang replacement for PHP's RecursiveDirectoryIterator::__construct
[edit | history]
PHP RecursiveDirectoryIterator::__constructPHP original manual for RecursiveDirectoryIterator::__construct [ show | php.net ]RecursiveDirectoryIterator::__construct(PHP 5 >= 5.1.2, PHP 7) RecursiveDirectoryIterator::__construct — Constructs 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
|
more
Recently updated
more
Most requested
more
Last requests
|