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

search for in the

SplFileInfo::getType> <SplFileInfo::getRealPath
[edit] Last updated: Fri, 10 Feb 2012

view this page in

SplFileInfo::getSize

(PHP 5 >= 5.1.2)

SplFileInfo::getSizeファイルサイズを取得する

説明

public int SplFileInfo::getSize ( void )

参照するファイルのファイルサイズをバイト数で返します。

パラメータ

この関数にはパラメータはありません。

返り値

ファイルサイズをバイト数で返します。

エラー / 例外

ファイルが存在しなかった場合やエラーが発生した場合に RuntimeException をスローします。

参考

  • filesize() - ファイルのサイズを取得する



add a note add a note User Contributed Notes SplFileInfo::getSize
franssen dot roland at gmail dot com 30-Apr-2011 05:59
Seems to return FALSE if file does not exists... (PHP 5.3.4)

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