FilesystemIterator::__construct

(PHP 5 >= 5.3.0, PHP 7) Constructs a new filesystem iterator public FilesystemIterator::__construct ( string $path [, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS ] ) Constructs a new filesystem iterator from the path. Parameters: path The path of the filesystem item to be iterated over.

FilesystemIterator::getFlags

(PHP 5 >= 5.3.0, PHP 7) Get the handling flags public int FilesystemIterator::getFlags ( void ) Gets the handling flags, as set in FilesystemIterator::__construct() or FilesystemIterator::setFlags(). Returns: The integer value of the set flags. See also: FilesystemIterator::__construct() -

FilesystemIterator::rewind

(PHP 5 >= 5.3.0, PHP 7) Rewinds back to the beginning public void FilesystemIterator::rewind ( void ) Rewinds the directory back to the start. Returns: No value is returned. Examples: FilesystemIterator::rewind() example <?php $iterator = new FilesystemIterator(dirname(__FILE__), FilesystemIterator::KEY_AS_FILENAME

FilesystemIterator::next

(PHP 5 >= 5.3.0, PHP 7) Move to the next file public void FilesystemIterator::next ( void ) Move to the next file. Returns: No value is returned. Examples: FilesystemIterator::next() example List the contents of a directory using a while loop. <?php $iterator = new FilesystemIterator(dirname(__FILE__)); while($it

DirectoryIterator::valid

(PHP 5, PHP 7) Check whether current DirectoryIterator position is a valid file public bool DirectoryIterator::valid ( void ) Check whether current DirectoryIterator position is a valid file. Returns: Returns TRUE if the position is valid, otherwise FALSE Examples: A DirectoryIterator::valid() example <?php $iterator =

EmptyIterator::rewind

(PHP 5 >= 5.1.0, PHP 7) The rewind() method public void EmptyIterator::rewind ( void ) No operation, nothing to do. Returns: No value is returned. This function is currently not documented; only its argument list is available.

EmptyIterator::next

(PHP 5 >= 5.1.0, PHP 7) The next() method public void EmptyIterator::next ( void ) No operation, nothing to do. Returns: No value is returned. This function is currently not documented; only its argument list is available.

EmptyIterator::key

(PHP 5 >= 5.1.0, PHP 7) The key() method public scalar EmptyIterator::key ( void ) This function must not be called. It throws an exception upon access. Returns: No value is returned. This function is currently not documented; only its argument list is available. Exception: Throws an Exception if called.

EmptyIterator::current

(PHP 5 >= 5.1.0, PHP 7) The current() method public mixed EmptyIterator::current ( void ) This function must not be called. It throws an exception upon access. Returns: No value is returned. This function is currently not documented; only its argument list is available. Exception: Throws an Exception if called.

EmptyIterator::valid

(PHP 5 >= 5.1.0, PHP 7) The valid() method public bool EmptyIterator::valid ( void ) The EmptyIterator valid() method. Returns: FALSE This function is currently not documented; only its argument list is available.