PHP 5.4.36 Released

SplFileInfo::getSize

(PHP 5 >= 5.1.2)

SplFileInfo::getSizeGets file size

Beschreibung

public int SplFileInfo::getSize ( void )

Returns the filesize in bytes for the file referenced.

Parameter-Liste

Diese Funktion hat keine Parameter.

R├╝ckgabewerte

The filesize in bytes.

Fehler/Exceptions

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

Siehe auch

add a note add a note

User Contributed Notes 1 note

up
0
franssen dot roland at gmail dot com
3 years ago
Seems to return FALSE if file does not exists... (PHP 5.3.4)
To Top