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.

Параметри

Тази функция няма параметри.

Връщани стойности

The filesize in bytes.

Грешки/Изключения

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

Вж. също


SplFileInfo
PHP Manual