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::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::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::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::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::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::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::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::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

DirectoryIterator::getGroup

(PHP 5, PHP 7) Get group for the current DirectoryIterator item public int DirectoryIterator::getGroup ( void ) Get the group id of the file. Returns: Returns the group id of the current DirectoryIterator item in numerical format. Examples: DirectoryIterator::getGroup() example <?php $iterator = new DirectoryIterator(d