Please wait while we load your page...
 

Announcements

PHP Manual :: SplFileInfo::getSize



SplFileInfo::getRealPath || SplFileInfo::getType || SplFileInfo || PHP Manual

(PHP 5 >= 5.1.2, PHP 7)

SplFileInfo::getSizeGets file size

Description

public int SplFileInfo::getSize ( void )

Returns the filesize in bytes for the file referenced.

Parameters

This function has no parameters.

Return Values

The filesize in bytes.

Errors/Exceptions

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

See Also



SplFileInfo::getRealPath || SplFileInfo::getType || SplFileInfo || PHP Manual
Live Chat Not Available