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.