编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 directoryiterator gets the file extensionphp rrd 函数 gets the timestamp of the first sample from rrd filephp 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 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 file is a directoryphp splfileinfo tells if the file is executablephp splfileinfo tells if the object references a regular filephp splfileinfo gets an splfileobject object for the filephp splfileobject gets line from filephp splfileobject gets line from file and strip html tags
关注编程学问公众号
编程学问网 湘ICP备20001732号