SplFileInfo
PHP Manual

SplFileInfo::getSize

(PHP 5 >= 5.1.2)

SplFileInfo::getSizeGets file size

Descripción

public int SplFileInfo::getSize ( void )

Returns the filesize in bytes for the file referenced.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

The filesize in bytes.

Errores/Excepciones

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

Ver también


SplFileInfo
PHP Manual