DirectoryIterator::__toString

(PHP 5, PHP 7) Get file name as a string public string DirectoryIterator::__toString ( void ) Get the file name of the current DirectoryIterator item. Returns: Returns the file name of the current DirectoryIterator item. Examples: A DirectoryIterator::__toString() example This example will list the contents of the director

DirectoryIterator::seek

(PHP 5 >= 5.3.0, PHP 7) Seek to a DirectoryIterator item public void DirectoryIterator::seek ( int $position ) Seek to a given position in the DirectoryIterator. Parameters: position The zero-based numeric position to seek to. Returns: No value is returned. Examples: DirectoryIter

DirectoryIterator::rewind

(PHP 5, PHP 7) Rewind the DirectoryIterator back to the start public void DirectoryIterator::rewind ( void ) Rewind the DirectoryIterator back to the start. Returns: No value is returned. Examples: DirectoryIterator::rewind() example <?php $iterator = new DirectoryIterator(dirname(__FILE__)); $iterator->next(); ec

DirectoryIterator::next

(PHP 5, PHP 7) Move forward to next DirectoryIterator item public void DirectoryIterator::next ( void ) Move forward to the next DirectoryIterator item. Returns: No value is returned. Examples: DirectoryIterator::next() example List the contents of a directory using a while loop. <?php $iterator = new DirectoryItera

DirectoryIterator::key

(PHP 5, PHP 7) Return the key for the current DirectoryIterator item public string DirectoryIterator::key ( void ) Get the key for the current DirectoryIterator item. Returns: The key for the current DirectoryIterator item. Examples: A DirectoryIterator::key() example <?php $dir = new DirectoryIterator(dirname(__FILE__

DirectoryIterator::isWritable

(PHP 5, PHP 7) Determine if current DirectoryIterator item can be written to public bool DirectoryIterator::isWritable ( void ) Determines if the current DirectoryIterator item is writable. Returns: Returns TRUE if the file/directory is writable, otherwise FALSE Examples: DirectoryIterator::isWritable() example This exampl

DirectoryIterator::isReadable

(PHP 5, PHP 7) Determine if current DirectoryIterator item can be read public bool DirectoryIterator::isReadable ( void ) Determines if the current DirectoryIterator item is readable. Returns: Returns TRUE if the file is readable, otherwise FALSE Examples: DirectoryIterator::isReadable() example <?php $iterator = new D

DirectoryIterator::isLink

(PHP 5, PHP 7) Determine if current DirectoryIterator item is a symbolic link public bool DirectoryIterator::isLink ( void ) Determines if the current DirectoryIterator item is a symbolic link. Returns: Returns TRUE if the item is a symbolic link, otherwise FALSE Examples: A DirectoryIterator::isLink() example This example

DirectoryIterator::isFile

(PHP 5, PHP 7) Determine if current DirectoryIterator item is a regular file public bool DirectoryIterator::isFile ( void ) Determines if the current DirectoryIterator item is a regular file. Returns: Returns TRUE if the file exists and is a regular file (not a link or dir), otherwise FALSE Examples: DirectoryIterator::isFile() example

DirectoryIterator::isExecutable

(PHP 5, PHP 7) Determine if current DirectoryIterator item is executable public bool DirectoryIterator::isExecutable ( void ) Determines if the current DirectoryIterator item is executable. Returns: Returns TRUE if the entry is executable, otherwise FALSE Examples: DirectoryIterator::isExecutable() example This example lis