Search Results
Use this method to set a custom class which will be used when SplFileInfo::getFileInfo () and SplFileInfo::getPathInfo () are called. The class name passed to this method must be SplFileInfo or a class derived from SplFileInfo.
Simple usage example of `SplFileInfo::setInfoClass ()`. The SplFileInfo::setInfoClass function is used to set the class that will be used when calling the SplFileInfo::getFileInfo and SplFileInfo::getPathInfo methods. These methods are used to retrieve file information and path information respectively. By specifying a custom class, you can customize the behavior and properties of the returned ...
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
Use this method to set a custom class which will be used when SplFileInfo::getFileInfo () and SplFileInfo::getPathInfo () are called. The class name passed to this method must be SplFileInfo or a class derived from SplFileInfo.
The SplFileInfo class Introduction The SplFileInfo class offers a high-level object oriented interface to information for an individual file.
People also ask
What does splfileinfo setinfoclass do?
What class name should be passed to splfileinfo() method?
What is splfileinfo class?
What class name should I use when calling splfileinfo?
The SplFileInfo class Introduction ¶ The SplFileInfo class offers a high-level object-oriented interface to information for an individual file.
