Search Results
SplFileInfo::getPerms (PHP 5 >= 5.1.2, PHP 7, PHP 8) SplFileInfo::getPerms — Gets file permissions
Jul 11, 2025 · The SplFileInfo::getPerms () function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get the permission of the file. Syntax: int SplFileInfo::getPerms( void ) Parameters: This function does not accept any parameter. Return values: This function returns the permission of file.
SplFileInfo::getPerms (PHP 5 >= 5.1.2, PHP 7, PHP 8) SplFileInfo::getPerms — Gets file permissions
Return Values Returns the file permissions on success, or false on failure.
The SplFileInfo class Introduction The SplFileInfo class offers a high-level object-oriented interface to information for an individual file.
User Contributed Notes There are no user contributed notes for this page.
Methods public __construct () — Construct a new SplFileInfo object __toString () — Returns the path to the file as a string getATime () — Gets last access time of the file getBasename () — Gets the base name of the file getCTime () — Gets the inode change time getExtension () — Gets the file extension
