Search Results
Gets file type SplFileInfo::getType (PHP 5 >= 5.1.2, PHP 7, PHP 8) SplFileInfo::getType — Gets file type
Jul 11, 2025 · The SplFileInfo::getType () function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get the file type. Syntax: string SplFileInfo::getType( void ) Parameters: This function does not accept any parameter. Return values: This function returns the type of file i.e. link, dir or file.
SplFileInfo::getType 26 déc. 2018 20 fois (PHP 5 >= 5.1.2, PHP 7, PHP 8) SplFileInfo::getType — Lit le type de fichier
The SplFileInfo class Introduction The SplFileInfo class offers a high-level object-oriented interface to information for an individual file.
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
SplFileInfo::getType (PHP 5 >= 5.1.2, PHP 7, PHP 8) SplFileInfo::getType — Gets file type
Return Values A string representing the type of the entry. May be one of file, link, or dir
