Easy Tutorial
❮ Func Ftp Mdtm Func Array Count Values ❯

PHP stat() Function



Definition and Usage

The stat() function returns information about a file.

This function returns an array containing the following elements:

Syntax

Parameter Description
filename Required. Specifies the path to the file.

Tips and Notes

Note: The results returned by this function may vary between servers. This array contains numeric indices, named indices, or both.

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


Example

The above code will output:


❮ Func Ftp Mdtm Func Array Count Values ❯