编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « SplFileInfo::getRealPath
  • SplFileInfo::getType »
  • PHP Manual
  • SplFileInfo
  • Gets file size

SplFileInfo::getSize

(PHP 5 >= 5.1.2, PHP 7)

SplFileInfo::getSize — Gets file size

说明

public SplFileInfo::getSize ( void ) : int

Returns the filesize in bytes for the file referenced.

参数

此函数没有参数。

返回值

The filesize in bytes.

错误/异常

A RuntimeException will be thrown if the file does not exist or an error occurs.

参见

  • filesize() - 取得文件大小

相关文章
php rrd 函数 gets the timestamp of the first sample from rrd filephp pht queue gets the size of the queuephp reflectiongenerator gets the file name of the currently executing generatorphp splfileinfo gets last access time of the filephp splfileinfo gets the base name of the filephp splfileinfo gets the file extensionphp splfileinfo gets an splfileinfo object for the filephp splfileinfo gets the filenamephp splfileinfo gets the file groupphp splfileinfo gets the inode for the filephp splfileinfo gets the owner of the filephp splfileinfo gets the path to the filephp splfileinfo gets file permissionsphp splfileinfo gets absolute path to filephp splfileinfo gets file sizephp splfileinfo gets file typephp splfileinfo tells if the object references a regular filephp splfileinfo tells if the file is a linkphp splfileinfo tells if file is readablephp splfileinfo gets an splfileobject object for the file
关注编程学问公众号
编程学问网 湘ICP备20001732号