PHP lstat() Function

PHP lstat Function


Define :

In this tutorial we have to learn about PHP lstat() Function.This is inbuilt function in php.This funciton is used to returns the information about a file or symbolic link.The results from this function will differ from server to server. The array may contain the number index, the name index, or both.

Syntax

  lstat(filename)
Parameters :
filename Required. Specify path to a file or a symbolic link.

 Given below example to get information about a file "demo.txt" :

Output :