Easy Tutorial
❮ Func Mysqli Query Func Simplexml Xpath ❯

PHP filesize() Function



Definition and Usage

The filesize() function returns the size of the specified file.

If successful, the function returns the file size in bytes. If it fails, it returns FALSE.

Syntax

Parameter Description
filename Required. Specifies the file to check.

Tips and Notes

Note: The result of this function is cached. Use clearstatcache() to clear the cache.


Example

The above code will output:


❮ Func Mysqli Query Func Simplexml Xpath ❯