SplFileInfo::getSize

(PHP 5 >= 5.1.2, PHP 7)

SplFileInfo::getSizeGets file size

Descrição

public SplFileInfo::getSize ( void ) : int

Returns the filesize in bytes for the file referenced.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

The filesize in bytes.

Erros

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

Veja Também