downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SplFileInfo::getType> <SplFileInfo::getRealPath
[edit] Last updated: Sun, 19 May 2013

view this page in

SplFileInfo::getSize

(PHP 5 >= 5.1.2)

SplFileInfo::getSizeGets file size

Descrição

public int SplFileInfo::getSize ( void )

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



add a note add a note User Contributed Notes SplFileInfo::getSize - [1 notes]
up
0
franssen dot roland at gmail dot com
2 years ago
Seems to return FALSE if file does not exists... (PHP 5.3.4)

 
show source | credits | sitemap | contact | advertising | mirror sites