Easy Tutorial
❮ Func String Ucwords Php Sessions ❯

PHP fstat() Function



Definition and Usage

The fstat() function returns information about an open file.

The function returns an array containing the following elements:

Syntax

Parameter Description
file Required. Specifies the open file to check.

Tips and Notes

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

Tip: The fstat() function is similar to the stat() function. The only difference is that fstat() requires the file to be already open.


Example

The above code will output:


❮ Func String Ucwords Php Sessions ❯