Search Results

  1. 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.

  2. 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 ...

  3. The SplFileInfo class Introduction The SplFileInfo class offers a high-level object-oriented interface to information for an individual file.

  4. 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

  5. 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.

  6. The SplFileInfo class Introduction The SplFileInfo class offers a high-level object oriented interface to information for an individual file.

  7. People also ask

  8. The SplFileInfo class Introduction ¶ The SplFileInfo class offers a high-level object-oriented interface to information for an individual file.