SplFileInfo::getPath

(PHP 5 >= 5.1.2, PHP 7) Gets the path without filename public string SplFileInfo::getPath ( void ) Returns the path to the file, omitting the filename and any trailing slash. Returns: Returns the path to the file. Examples: SplFileInfo::getPath() example <?php $info = new SplFileInfo('/usr/bin/php'); var_dump($info-

SplFileInfo::getOwner

(PHP 5 >= 5.1.2, PHP 7) Gets the owner of the file public int SplFileInfo::getOwner ( void ) Gets the file owner. The owner ID is returned in numerical format. Returns: The owner id in numerical format. Exception: Throws RuntimeException on error. Examples: SplFileInfo::getOwner() example <?php $in

SplFileInfo::getMTime

(PHP 5 >= 5.1.2, PHP 7) Gets the last modified time public int SplFileInfo::getMTime ( void ) Returns the time when the contents of the file were changed. The time returned is a Unix timestamp. Returns: Returns the last modified time for the file, in a Unix timestamp. See also: filemtime() -

SplFileInfo::getLinkTarget

(PHP 5 >= 5.2.2, PHP 7) Gets the target of a link public string SplFileInfo::getLinkTarget ( void ) Gets the target of a filesystem link. Note: The target may not be the real path on the filesystem. Use SplFileInfo::getRealPath() to determine the true path on the filesystem. Returns: Returns the target of the filesystem link. Exception: Throws RuntimeExcep

SplFileInfo::getInode

(PHP 5 >= 5.1.2, PHP 7) Gets the inode for the file public int SplFileInfo::getInode ( void ) Gets the inode number for the filesystem object. Returns: Returns the inode number for the filesystem object. Exception: Throws RuntimeException on error. See also: fileinode() -

SplFileInfo::getGroup

(PHP 5 >= 5.1.2, PHP 7) Gets the file group public int SplFileInfo::getGroup ( void ) Gets the file group. The group ID is returned in numerical format. Returns: The group id in numerical format. Exception: Throws RuntimeException on error. Examples: SplFileInfo::getGroup() example <?php $info = ne

SplFileInfo::getFilename

(PHP 5 >= 5.1.2, PHP 7) Gets the filename public string SplFileInfo::getFilename ( void ) Gets the filename without any path information. Returns: The filename. Examples: SplFileInfo::getFilename() example <?php $info = new SplFileInfo('foo.txt'); var_dump($info->getFilename()); $info = new SplFileInfo('/path/to

SplFileInfo::getFileInfo

(PHP 5 >= 5.1.2, PHP 7) Gets an SplFileInfo object for the file public SplFileInfo SplFileInfo::getFileInfo ([ string $class_name ] ) This method gets an SplFileInfo object for the referenced file. Parameters: class_name Name of an SplFileInfo derived class to use. Returns: An SplFileInfo object created for the file.

SplFileInfo::getExtension

(PHP 5 >= 5.3.6, PHP 7) Gets the file extension public string SplFileInfo::getExtension ( void ) Retrieves the file extension. Returns: Returns a string containing the file extension, or an empty string if the file has no extension. Notes: This method is only available as of PHP 5.3.6. Another way of getting the extension is to use the path

SplFileInfo::getCTime

(PHP 5 >= 5.1.2, PHP 7) Gets the inode change time public int SplFileInfo::getCTime ( void ) Returns the inode change time for the file. The time returned is a Unix timestamp. Returns: The last change time, in a Unix timestamp. Exception: Throws RunTimeException on error. Examples: SplFileInfo::getCTime() example