SplFileInfo
PHP Manual

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.

Список параметров

This function has no parameters.

Возвращаемые значения

The filesize in bytes.

Errors/Exceptions

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

Смотрите также


SplFileInfo
PHP Manual