文字

SplFileInfo::getSize

(PHP 5 >= 5.1.2)

SplFileInfo::getSizeGets file size

说明

public int SplFileInfo::getSize ( void )

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() - 取得文件大小

用户评论:

[#1] franssen dot roland at gmail dot com [2011-04-30 05:59:22]

Seems to return FALSE if file does not exists... (PHP 5.3.4)

上一篇: 下一篇: