DirectoryIterator::isDot

(PHP 5, PHP 7) Determine if current DirectoryIterator item is '.' or '..' public bool DirectoryIterator::isDot ( void ) Determines if the current DirectoryIterator item is a directory and either . or ... Returns: TRUE if the entry is . or .., otherwise FALSE Examples: A DirectoryIterator::isDot() example This example will

DirectoryIterator::isDir

(PHP 5, PHP 7) Determine if current DirectoryIterator item is a directory public bool DirectoryIterator::isDir ( void ) Determines if the current DirectoryIterator item is a directory. Returns: Returns TRUE if it is a directory, otherwise FALSE Examples: DirectoryIterator::isDir() example This example lists the directories

DirectoryIterator::getType

(PHP 5, PHP 7) Determine the type of the current DirectoryIterator item public string DirectoryIterator::getType ( void ) Determines which file type the current DirectoryIterator item belongs to. One of file, link, or dir. Returns: Returns a string representing the type of the file. May be one of file, link, or dir. Examples: Directory

DirectoryIterator::getSize

(PHP 5, PHP 7) Get size of current DirectoryIterator item public int DirectoryIterator::getSize ( void ) Get the file size for the current DirectoryIterator item. Returns: Returns the size of the file, in bytes. Examples: DirectoryIterator::getSize() example <?php $iterator = new DirectoryIterator(dirname(__FILE__)); f

DirectoryIterator::getPerms

(PHP 5, PHP 7) Get the permissions of current DirectoryIterator item public int DirectoryIterator::getPerms ( void ) Get the permissions of the current DirectoryIterator item. Returns: Returns the permissions of the file, as a decimal integer. Examples: DirectoryIterator::getPerms() example <?php $iterator = new Direct

DirectoryIterator::getPathname

(PHP 5, PHP 7) Return path and file name of current DirectoryIterator item public string DirectoryIterator::getPathname ( void ) Get the path and file name of the current file. Returns: Returns the path and file name of current file. Directories do not have a trailing slash. Examples: DirectoryIterator::getPathname() example

DirectoryIterator::getPath

(PHP 5, PHP 7) Get path of current Iterator item without filename public string DirectoryIterator::getPath ( void ) Get the path to the current DirectoryIterator item. Returns: Returns the path to the file, omitting the file name and any trailing slash. Examples: DirectoryIterator::getPath() example <?php $iterator = n

DirectoryIterator::getOwner

(PHP 5, PHP 7) Get owner of current DirectoryIterator item public int DirectoryIterator::getOwner ( void ) Get the owner of the current DirectoryIterator item, in numerical format. Returns: The file owner of the file, in numerical format. Examples: DirectoryIterator::getOwner() example This example displays the owner of th

DirectoryIterator::getMTime

(PHP 5, PHP 7) Get last modification time of current DirectoryIterator item public int DirectoryIterator::getMTime ( void ) Get the last modification time of the current DirectoryIterator item, as a Unix timestamp. Returns: The last modification time of the file, as a Unix timestamp. Examples: A DirectoryIterator::getMTime() example

DirectoryIterator::getInode

(PHP 5, PHP 7) Get inode for the current DirectoryIterator item public int DirectoryIterator::getInode ( void ) Get the inode number for the current DirectoryIterator item. Returns: Returns the inode number for the file. Examples: DirectoryIterator::getInode() example This example displays the inode number for the director