Easy Tutorial
❮ Php Xml Simplexml Pdostatement Fetch ❯

PHP lstat() Function



Definition and Usage

The lstat() function returns information about a file or symbolic link.

The function returns an array containing the following elements:

Syntax

Parameter Description
file Required. Specifies the path to check.

Tips and Notes

Note: The results returned by this function may differ 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.

Tip: The lstat() function is similar to the stat() function. The only difference is that if the file parameter is a symbolic link, it returns the status of the symbolic link itself (rather than the status of the file it points to).


Example

The above code will output:


❮ Php Xml Simplexml Pdostatement Fetch ❯