Search Results
SplFileInfo::getPath (PHP 5 >= 5.1.2, PHP 7, PHP 8) SplFileInfo::getPath — Gets the path without filename
Jul 11, 2025 · The SplFileInfo::getPath () function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to return the path without filename. Syntax: string SplFileInfo::getPath( void ) Parameters: The function does not accept any parameter. Return Value: This function returns the path of file excluding the file name. Below programs illustrate the SplFileInfo::getPath () function in PHP ...
The SplFileInfo class Introduction The SplFileInfo class offers a high-level object-oriented interface to information for an individual file.
getPath () — Gets the path without filename getPathInfo () — Gets an SplFileInfo object for the path getPathname () — Gets the path to the file getPerms () — Gets file permissions getRealPath () — Gets absolute path to file getSize () — Gets file size getType () — Gets file type isDir () — Tells if the file is a directory
SplFileInfo::getPath (PHP 5 >= 5.1.2, PHP 7) SplFileInfo::getPath — Gets the path without filename
Returns the path to the file, omitting the filename and any trailing slash.
Returns the path to the file, omitting the filename and any trailing slash.
