Search Results

  1. Gets file size SplFileInfo::getSize (PHP 5 >= 5.1.2, PHP 7, PHP 8) SplFileInfo::getSize — Gets file size

    • getExtension

      SplFileInfo::getExtension (PHP 5 >= 5.3.6, PHP 7, PHP 8)...

    • getPathname

      SplFileInfo::getPathname (PHP 5 >= 5.1.2, PHP 7, PHP 8)...

    • openFile

      Creates an SplFileObject object of the file. This is useful...

    • getCTime

      SplFileInfo::getCTime (PHP 5 >= 5.1.2, PHP 7, PHP 8)...

    • getMTime

      Returns the time when the contents of the file were changed....

    • getBasename

      Caution SplFileInfo::getBasename () is locale aware, so for...

    • isDir

      SplFileInfo::isDir (PHP 5 >= 5.1.2, PHP 7, PHP 8)...

    • getPath

      SplFileInfo::getPath (PHP 5 >= 5.1.2, PHP 7, PHP 8)...

  2. Jul 11, 2025 · The SplFileInfo::getSize () function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get file size in bytes. Syntax: int SplFileInfo::getSize( void ) Parameters: This function does not accept any parameter. Return values: This function returns the size of file in bytes.

  3. So, getSize is not a function, it's a method of a class SplFileInfo. What is the difference between both functions filesize() and SplFileInfo::getSize()? which one should I use?

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

  5. www.mirrorservice.org › en › splfileinfoSplFileInfo::getSize

    Return Values The filesize in bytes on success, or false on failure.

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

  7. {"payload":{"allShortcutsEnabled":false,"fileTree":{"reference/spl/splfileinfo":{"items":[{"name":"construct.xml","path":"reference/spl/splfileinfo/construct.xml ...